Test: transition of "auto attach" feature to new js-debug JavaScript terminal #96296
Closed
2 tasks done
Labels
Milestone
Refs: #88599
Complexity: 3
Authors: @connor4312, @weinand
VS Code's legacy Node.js debugging supports an "auto attach" feature, which makes the VS Code debugger automatically attach to node.js programs if they were launched from the integrated terminal in debug mode (for details see https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_auto-attach-feature).
The new JavaScript debugger supports an even more elegant auto-attach: node.js programs do not have to be launched in debug mode in order to have the debugger auto attach to it (this is js-debug's new "Node.js Debug Terminal").
To provide a smooth transition experience for existing "auto-attach" users to the new js-debug functionality, we've added code that automatically transitions the "auto-attach" settings to the new settings when the user switches from the current node.js debugger to js-debug.
How to verify:
test.js
:console.log
node --inspect test.js
VS Code should automatically attach to the program and stop on the breakpoint
debug.node.useV3: true
node test.js
VS Code should automatically attach to the program and stop on the breakpoint (but now in the new debugger)
Now verify more cases:
node test.js
from the integrated terminalTBD..
@connor4312 please correct anything that I got wrong and add more tests for corner cases you are aware of
The text was updated successfully, but these errors were encountered: