Skip to content
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

Auto-attach not working #702

Closed
ep1cman opened this issue Aug 17, 2020 · 2 comments
Closed

Auto-attach not working #702

ep1cman opened this issue Aug 17, 2020 · 2 comments
Assignees

Comments

@ep1cman
Copy link

ep1cman commented Aug 17, 2020

Describe the bug
When running node via the integrated terminal the auto attach feature is not working.

To Reproduce
Steps to reproduce the behavior:

  1. Create empty folder with single javascript file called test.js e.g:
let a = "foo"; //Breakpoint here
console.log(a);
  1. Open folder in VS code
  2. Open integrated terminal
  3. run node test.js
  4. script runs without attaching debugger

Doing the above using the "Javascript Debug Terminal" works as expected

VS Code Version: 1.48.0

Additional context
I have "Only Auto Attach Explicit" disabled and "Use Preview" enabled.

@ep1cman ep1cman added the bug Issue identified by VS Code Team member as probable bug label Aug 17, 2020
@connor4312
Copy link
Member

At the moment, auto attach only works when running with the --inspect flag, e.g. node --inspect test.js. See here for more information: https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_auto-attach-feature

We're reevaluating the ability to have global (non-explicit) auto attach as a plan item this month (microsoft/vscode#104735)

@connor4312 connor4312 removed the bug Issue identified by VS Code Team member as probable bug label Aug 17, 2020
@connor4312
Copy link
Member

Tracking this in #703, subscribe there for updates 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants