-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
[Regression] Debugging of typescript node apps has been broken #40430
Comments
Your launch config is wrong (and it was only working in previous versions of VS Code because of bug #16173). Instead you should only pass nodemon arguments via "runtimeArgs", then use the "program" attribute for your "real" program and then the "real" arguments through the "args" attribute.
This launch config should work on all versions of VS Code so you can try it with 1.18.1 and if it works you can safely upgrade to 1.19. Let me know if this works. |
@weinand Thanks for the explanation. I've tried the suggested debug configuration. Unfortunately I've got the following error message on both 1.18.1 and 1.20.0:
There's no
|
You do not seem to have an explicit build task that transpiles TS to JS. Remove the "program" attribute and insert the "${workspaceRoot}/src/index.ts" as the first argument of the "args" attribute just before "--project".
|
Yep, that worked. 1.18.1, 1.19.0 and 1.20.0. Thanks @weinand! |
Code 1.19.0 (816be67, 2017-12-14T12:06:43.492Z)
Code - Insiders 1.20.0-insider (08ec160, 2017-12-
15T05:15:38.886Z)
Debugging works fine in Code 1.18.1 (929bacb, 2017-11-16T18:32:36.023Z). Have to revert to it until the bug is fixed.
Steps to Reproduce:
https://github.com/deilan/node-typescript-vscode
npm install
oryarn install
Launch via nodemon
debugging configurationResult:
The process has been started, debugger couldn't start with the following error message:
The text was updated successfully, but these errors were encountered: