-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging TypeScript in non-root folder can't find corresponding JavaScript #973
Comments
I believe NodeRunDAPDebugDelegate is the what this can be improved. I suspect that source maps are not properly passed by Wild Web Developer to the Debug Adapter Protocol. |
vrubezhny
added a commit
to vrubezhny/wildwebdeveloper
that referenced
this issue
Jan 21, 2023
vrubezhny
added a commit
to vrubezhny/wildwebdeveloper
that referenced
this issue
Jan 21, 2023
vrubezhny
added a commit
to vrubezhny/wildwebdeveloper
that referenced
this issue
Jan 21, 2023
vrubezhny
added a commit
to vrubezhny/wildwebdeveloper
that referenced
this issue
Jan 21, 2023
vrubezhny
added a commit
that referenced
this issue
Jan 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After using the fix for #960, if a debug session is launched for TypeScript file that resides within a subdirectory, the debugger is unable to find its corresponding JavaScript, even when the JavaScript has unambiguous source maps & a
tsconfig.json
file specifies the location of the JavaScript.Steps to reproduce:
tsconfig.json
that includes at least"sourceMap": true
&"outDir": "./<someOutPath>"
, and optionally"rootDir: "./<someSrcPath>"
.*.ts
file in./<someSrcPath>
and compile it withtsc
(and make sure it picked up thetsconfig.json
by checking that generated the*.js
file is in./<someOutPath>
).*.ts
file and debug it with Debug As > Node Application.Results:
The debug session with fail with this error dialog:
Workarounds:
*.js
file withnode --inspect-brk
in a terminal (or with External Tool Configurations > Program), and attach to it with Debug Configurations > Running Node.js application.*.ts
file to the root directory of the project (and remove"rootDir"
from thetsconfig.json
if it was specified), the recompile & relaunch the debug session.The text was updated successfully, but these errors were encountered: