Debugger is not stopping/showing at the breakpoint in node v6.1.0
- VSCode Version: Alpha
- OS Version: OSX 10.11.5
Steps to Reproduce:
Follow the steps in smoke test - Smoke Test Debugging Javascript section
- Open VS code with VSCode-Smoketest-Express project
- Go to debug view
- Put a break point in index.js file at line 6
- Start the application
- In the browser open the application page http://localhost:3000/
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
- It worked when I tested first time and later it was breaking sometimes as above. I used keyboard short cuts to stop and start the server. I do not know if it is something to do with this
@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 (https://github.com/node-inspector/node-inspector/issues/864). VS Code has a workaround for it, but that does not seem to work as reliably for you as for me. We will have to wait until the real fix for V8 appears in node v6.
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. : 1.2.0-insider
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. I use vscode on windows, linux and mac with node 5.x and I get that behaviour on each platform ever since upgrading to 1.0 In case of the linux machine I also tried node 4.x, 5.x and 6.x and it did not make any difference. I then reverted vscode back to a 0.9x version with node 6.x and it worked again. So there must be something wrong with the 1.0 release as opposed to a possible node 6.x incompatibility. I also tried the 1.2.0 insider but the problem still persists there.
The original problem is a symptom of a specific v8/node v6 issue (https://github.com/nodejs/node/pull/6928) which has been fixed in node 6.2.1. The other problems occur in any version and are unrelated to this issue (even if they show the same symptoms).
@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?
@jnystrom https://github.com/Microsoft/vscode/issues/6164 or https://github.com/Microsoft/vscode/issues/5422
just fyi, I updated to node 6.2.1 but the debugger is still not showing the breakpoint. I tried it with 1.1.1 and the most recent insider as of today: 1.2.0 (7ccb21d7e7256a7d42f3dda8b2d3721b8e59724f)
@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.
//breakpoints here work fine
hbs.registerHelper("include", () => {
//any breakpoint here triggers this behaviour
});
If wanted I can try to isolate the behaviour to a short snippet for easy reproduction. As I said it appeared ever since I upgraded to 1.0 regardless of os or node version.
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
@tallakh @tmkn do you have a (ideally small) reproducible case that I can investigate?
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.
@tallakh you are hitting https://github.com/Microsoft/vscode/issues/7481