-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Debugger is not stopping/showing at the breakpoint in node v6.1.0 #6967
Comments
@weinand FYI |
@sandy081 what version of node are you using? |
@weinand its v6.1.0 |
@sandy081 I was not able to reproduce this on OS X 10.11 and node 6.1. The error that you see in the CALL STACK view is a V8 issue in node v6.x (node-inspector/node-inspector#864). |
I am seeing this behavior and I am running node v 4.4.3. I am seeing Code say "PAUSED ON BREAKPOINT" but I am not seeing any indication of the breakpoint or the data around it. The strange thing is that on some endpoints (express endpoints), the breakpoints work fine, and others not. I am on OSX 10.11.4. |
@jnystrom what version of VS Code are you using? |
I am using the latest Insiders version. : |
I just tested it in the latest released version and I still see the issue. I can add breakpoints that hit, during the startup of my node app, but when I hit this express 'PUT' endpoint, I cannot see any breakpoints getting hit. I do see them getting hit on a 'GET' endpoint. I am possibly using a newer version of NPM that is newer than the version of node I am using. |
I have that problem too since upgrading vscode to 1.0. |
The original problem is a symptom of a specific v8/node v6 issue (nodejs/node#6928) which has been fixed in node 6.2.1. @sandy081 please verify that node 6.2.1 fixes your problem. |
@weinand can I get a link to the Issue(s) that have to do with these same symptoms? |
just fyi, I updated to node 6.2.1 but the debugger is still not showing the breakpoint. |
@tmkn this bug is about that a breakpoint is hit but that the call stack view stays empty. Is this really the problem you are seeing? If not please create a new issue with detailed steps for how to reproduce the problem. |
@weinand Yes, I set a breakpoint but the stack view stays empty, I can press continue and by doing that the program then finishes correctly. I just looked at the attached gif again and it behaves exactly the same however my call stack stays empty(there's no "No callstack available" message like in the gif). Also certain breakpoints work, it's just those that in my case are set inside a handlebarsjs registerFunction won't show any information.
If wanted I can try to isolate the behaviour to a short snippet for easy reproduction. |
I can confirm the same issue here. The breakpoint is hit and the application pauses, but the call stack view is empty with an error message: "No call stack available (Cannot read property 'indexOf' of undefined)." I'm using node 6.2.1 and vscode 1.2.0 |
I'm experiencing the same issue. The debugger stops, but it doesn't look like it's connected to any breakpoint and the call stack view is empty. I have tried different node versions but the problem persists. Using Visual Studio Code 1.2.0 I have also verified that the same breakpoints works in other IDE's like JetBrains WebStorm for instance. |
@jornki it would be great if you could provide a reproducible case that I can investigate. |
@weinand Thanks, looking forward to a fix. |
This bug still occurs to me with the latest Insiders builds and the latest Node.js |
@rmagen so when hitting a breakpoint you are seeing this message in the CALL STACK view? |
Yes. Thanks! |
The latest release of VS Code on both Windows and Ubuntu (with latest nodeJS 7) is still having this issue. It is extremely hard to reproduce and only seems to happen once the code base exceeds some complexity. |
I'm facing this issue, node version 6.9.3 and VS code version 1.10.2, When I put a breakpoint at the beginning of the code I can see the yellow bar and I can step into and over the code, however after using Promises and generators in different places in the code, the debugging stops to work. the application seems to pause where the breakpoint is set, but I can not inspect variables or step into or over the code. do we have an update on this issue? |
@waelemara the issue you are seeing is most likely #22015. |
Hi @weinand, I have installed the latest version of VS Code Insiders, but unfortunately it is still not working, worth mentioning that I'm not using Electron, and the debugging protocol that I'm using is "legacy", not "inspector". |
I'm with the insider using inspector and this happens mostly when using bluebird. I'm in node 7.6. |
@waelemara What is the exact problem you are seeing? |
I have a very similar issue with a complex Promise chain
|
@shamoons do you have a reproducible snippet that you can share with us? |
Was this ever resolved? |
Yes, pls see: #6967 (comment) |
Steps to Reproduce:
Follow the steps in smoke test - Smoke Test Debugging Javascript section
Expected: Debugger should stop at the break point and show all necessary debug information like call stack etc
Actual: Debugger stops but there is no visual representation that it is actually stopping, and no necessary info is shown.
Additional Information:
See the attached movie
http://g.recordit.co/0UV4elT3Cq.gif
The text was updated successfully, but these errors were encountered: