-
Notifications
You must be signed in to change notification settings - Fork 282
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
node.js breakpoints become "unbound breakpoint" #581
Comments
Can you please share the log file using these instructions?
|
If you are using Node 8, this may be microsoft/vscode#102166. See solution here: microsoft/vscode#102166 (comment) Let me know and I will reopen if this is not your issue! |
Yes, my node version is 8.16. thanks a lot |
A fix for this issue has now been released in VS Code 1.47.2. If you previously had to opt-out of the new debugger, you should be safe to turn it back on. Thanks again for the report! |
Hey @connor4312, I'm also getting unbound breakpoints while trying to attach to a nodeJS process. Would you be willing to take a look at my logs? I've been trying to attach the debugger to a nodeJS process which gets started by an Elixir web endpoint, but unfortunately all my breakpoints are greyed out, and I'm not sure what's going wrong. I did get a warning like "it's taking a long time to set up breakpoints", but I'm not sure what's generating this. |
@watcher00090 it looks like you're trying to debug your build process rather than the running application. E.g. none of the files in |
Hey @connor4312, thanks for getting back to me about this! Haha, that was a silly thing to do. The thing is, that's the only NodeJS process that's running on my machine, so I'm not sure what else to attach it to. Is this the right way to debug frontend code that gets served from a non-nodeJS web endpoint? Also, I tried using the 'Launch Chrome' configuration after the Elixir web endpoint is started elsewhere, but I'm still getting unbound breakpoints in my frontend code. Log is attached, maybe you'd be willing to take a look at it and point me in the right direction? |
I'm having the same issue now. VSCode Insiders 1.60.0-insider |
After upgrade to 1.60.0 Node 8.11 application debugging does not work. Fixed with "legacy-node" type. @offero check this out. It's mentioned here https://code.visualstudio.com/updates/v1_60#_javascript-debugging |
We strongly recommend upgrading off Node 8. The version of V8 included in Node 8 has bugs with debugging, and Node 8 itself reached end of life in 2019 and has not received security patches since then. Node 10 also reached end of life this year. The most recent stable version of Node.js is 16.x. |
HI all, I'm a new developer and I'm trying to debug and work with an existing nodejs app written in v 8.10. How do I upgrade the application to a stable version of Nodejs to get the debugging to work? If any of you have any tips or sites that would help a new dev with basic steps like:
I would be eternally grateful. I've been trying to learn this on my own and don't have anyone at work to help. Our old dev left for a new job and I'm trying to fill the void until we get a seasoned developer on board. Thank you, Thomas |
Generally you can just install the newer Node version without any code changes. The exception is if you have modules that have native dependencies that might be outdated and only work with old Node versions, but these will generally fail either on installation or right when they're Here's the documentation on general node debugging: https://code.visualstudio.com/docs/nodejs/nodejs-debugging |
Connor, I used nvm to upgrade to Node v 17. I launched my application, went to the package.json file, under Scripts, I hovered over start, and selected "run script" to get the server piece running. For the client piece, I hovered over it and chose "debug." The breakpoints that I picked in the js file are still showing that it's "unbound." When I go through the application, it doesn't function right as a break point and let me step through the data. Am I going about this correctly or am I doing something wrong? Thank you, Thomas |
Please open a new issue and include the details which the template asks for. |
Describe the bug
node.js breakpoints become "unbound breakpoint".
To Reproduce
Steps to reproduce the behavior:
After upgrade to 1.47, just open my node.js project, and start debugging, all breakpoints said to be "unbound breakpoints"
Log File
VS Code Version: 1.47
Additional context
I revert to 1.46, all breakpoints works well
The text was updated successfully, but these errors were encountered: