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

The debugger doesn't work properly in versions > 46 #104781

Closed
irtaza-ebryx opened this issue Aug 17, 2020 · 8 comments
Closed

The debugger doesn't work properly in versions > 46 #104781

irtaza-ebryx opened this issue Aug 17, 2020 · 8 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster

Comments

@irtaza-ebryx
Copy link

Issue Type: Bug

  • Set a breakpoint
  • Keep the file with the breakpoint open
  • Start debugger on a NodeJS project
  • The breakpoint dissappears.
  • When the breakpoint is hit, the same file is opened with the debugger stopped at the breakpoint. And in this file the breakpoint is also visible.

P.S. In versions <= 47.2 debugging wasn't working at all. The behavior above is for versions >= 47.3.

VS Code version: Code 1.46.1 (cd9ea64, 2020-06-17T21:13:08.304Z)
OS version: Linux x64 4.15.0-112-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Screen Reader no
DESKTOP_SESSION ubuntu
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Extensions (13)
Extension Author (truncated) Version
bracket-pair-colorizer Coe 1.0.61
gitlens eam 10.2.2
gc-excelviewer Gra 3.0.39
easy-icons jam 0.3.1
dotenv mik 1.0.1
graphql mqu 0.1.2
vscode-docker ms- 1.4.1
python ms- 2020.7.96456
prisma Pri 2.3.0
nunjucks ron 0.3.0
code-settings-sync Sha 3.4.3
octave toa 0.0.3
pdf tom 1.1.0
@weinand weinand assigned connor4312 and unassigned weinand Aug 17, 2020
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Aug 17, 2020
@connor4312
Copy link
Member

Please collect a trace log using the following instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.

⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com

/needsMoreInfo

@altair-jan
Copy link

Guys, I see the same issue. This started happening after the latest update. Please fix it and really annoying and making unusable. I have to put debugger in the code to actually hit the breakpoint.

@altair-jan
Copy link

@connor4312 - I have emailed the log, please do the needful.

@connor4312
Copy link
Member

In the log you sent, it doesn't look like you hit a breakpoint at all. Can you send a log where you do this?

The most common cause of this problem is using Node 8 (which is end of life as of 2020) and the best solution to the problem is to update to a most recent version if possible. A complete log file will determine whether this is happening for you.

@altair-jan
Copy link

altair-jan commented Aug 19, 2020 via email

@connor4312
Copy link
Member

Okay. What version of Node are you using, and how are you launching the program you're trying to attach to?

@irtaza-ebryx
Copy link
Author

I was running node version 8, tried version 10 and 12 using runtimeVersion option in launch.json, and it worked for me. Thanks.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants
@weinand @connor4312 @irtaza-ebryx @altair-jan and others