-
Notifications
You must be signed in to change notification settings - Fork 321
Description
I've had a debugging session with "debug.node.useV3": true
both set to on and off, each gives me issues. I've found a couple of bugs, thought it was worth sharing them here.
Desc
When switching to "debug.node.useV3": true the server side debugging no longer works.
Steps to reproduce.
- Clone https://github.com/jasonwilliams/nextjs9-typescript-server-vscode-example
- npm install
- npm run-script dev
- in VSCode "launch server" debugger
- add a breakpoint in server/index.ts (line 12 const expressApp = express())
First issue:
For some reason this breakpoint triggers instantly, even though the server doesn't seem to have restarted. (this could also be a bug)
Second issue:
Now clicking continue seems to kill the debugger. This isn't expected, as the server itself is still running.
Third issue (main issue):
- in .vscode settings.json add
"debug.node.useV3": true
- Launch the "launch server" debugging session again
- add a breakpoint in server/index.ts (line 12 const expressApp = express())
Now you will find that the breakpoints don't work, "Unbound Breakpoint"
Logs
https://gist.github.com/jasonwilliams/3ad5f388e8b81bc0ecb3bf65e40bb6b9 (before nightly debugger was turned on)
https://gist.github.com/jasonwilliams/4a1686af9626d279658cfbcf86455d68 (attempting to set breakpoints with nightly debugger on)
https://gist.github.com/jasonwilliams/0897396a203a53cf5e487564681d1fbe (attempting to set breakpoints with nightly debugger off)
Versions
- Windows 10.0.18363 Build 18363
- VSCode 1.42.0-insider (system setup)
- Javascript Debugger (Nightly) - 2020.1.43263
- Node v13.1.0