You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
don't set runtime debug options when port attribute is specified #98
node2 exhibits different behaviour when a "port" attribute is specified.
Here is the use case:
I want to create a launch config that uses a locally installed "nodemon" (from the node_modules folder of the project). For this I have to make sure that the "--debug=12345" argument is not passed as a runtime argument to the first instance of node that runs 'nodemon' but that is is passed as an argument to the nodemon.js program (which passes it to the second instance of node).
So the difference is basically this:
node nodemon.js --debug=12345 test.js
instead of:
node --debug=12345 nodemon.js test.js
According to the documentation this can be achieved by specifying an explicit "port" attribute:
If you specify a debug port via the port attribute, VS Code will not automatically add the --debug-brk=nnnn attribute because the debug port is typically specified by the npm script or other tool as well.
A corresponding launch config that works for 'legacy' is this:
changed the title [-]don't set debug options when port attribute is specified[/-][+]don't set runtime debug options when port attribute is specified[/+]on Apr 10, 2017
Activity
[-]don't set debug options when port attribute is specified[/-][+]don't set runtime debug options when port attribute is specified[/+]