vscode: Code doesn't attach to node process in Javascript Debug Terminal

  • VSCode Version: 1.47
  • OS Version: Windows 10 v1803 (17134.1550)

Steps to Reproduce:

  1. Create a new Javascript Debug Terminal. Using git-bash/mingw as my shell.
  2. Set a breakpoint in code
  3. Run node process, e.g. npm t in debug terminal
  4. Process launches, but sits idle after output similar to the following:

Debugger listening on ws://127.0.0.1:54596/2827d3c1-baf0-499c-9e72-f964b7f76038 For help, see: https://nodejs.org/en/docs/inspector

Does this issue occur when all extensions are disabled?: Yes

Additional Info:

  • Node version v12.14.1
  • Also tried this on Insiders, using PowerShell instead of git-bash/mingw, saw the same result.
  • Tried downgrading to 1.46.1, but after the upgrade to 1.47 it was broken on the old version too.
  • Tried setting "debug.javascript.usePreview" setting to both true and false (relaunch vscode after change). Fails on both.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Thanks for following up! Yes auto attach does cache some stuff per-workspace. New 1.47.2 workspaces should be totally fine. Workspaces opened in 1.47.0-1 may need to you toggle auto attach to disabled (and then back on if you want) to get cleared out.