-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Debug process didn't close after finish debugging #1788
Comments
cross-ref: nodejs/node-v0.x-archive#25358 |
Trying it on mac, latest atom, Node 0.12.4, and it doesn't seem to work. F5 just says "finish debugging :) " |
Hey @pitosalas , it seems that your configuration is not correct. Which can not find the node.js binary? Is there any error popup shows up? Anyway, please move the Here is the issues for io.js. |
Hi, i don't know how...and why...but all shortcuts are disabled. OS: Windows 7 64bit Ty |
This is frustrating me too. I end up restarting my terminal (iTerm2 on this machine) to get out and start again... |
OS: OS X EI Capitian |
All shortcuts are disabled.I am using Windows 7 64 bit system. |
It's possible that this was fixed recently in v5 and master. Can anyone confirm? |
Nope, still an issue unfortunately. /cc @thealphanerd |
assigned to myself... will dig in next week |
I can confirm that this bug is present in v4, v5, and v0.12. v0.10 appears to work as expected (assuming the exepcted behavior is that the debugger informs you of the program terminating |
i have confirmed this problem from node 4.4.2 to 6.2.2. I used "node debug a.js" to test debugger. This works in old version. This problem affect other product such as WebStorm. If this is by design, then should let WebStorm fix it. |
Any news about this? I'm still affected using Visual Studio Code and Node 6.5.0 |
I'm also still affected using Visual Studio Code 1.6.1 and Node 6.9.1. |
I am having the same experience. Any ideas regarding this development? Node 7.1.0 and VSCode 1.7.1 |
For those on Linux (esp using VS code) who want a really hacky way to terminate the debugger on process exit, here you go...
|
Closing this. If this is still an issue that needs to be fixed, we can reopen. |
@jasnell, on what basis did you close this bug? It seems to be a long-standing Node bug that keeps popping up (usually other front-end debugging tools are inappropriately blamed). Why can't it be acknowledged and then fixed? |
The old debugger has been deprecated and removed as of 8.0.0. While this issue may be relevant still in older versions, and while I'd really like to see these older issues addressed, the likelihood that someone with enough domain expertise to resolve the issue is going to pick it issue up and fix it in 6.x or 4.x is fairly low, unfortunately. We can certainly reopen the issue but we would need someone to move it forward. |
@jasnell, so this is fixed in the new debugger? I am using Visual Studio Code. Do you have any pointers for using the new debugger with it? Just install node 8.0? |
@mattflix It's covered in their documentation here: https://code.visualstudio.com/docs/nodejs/nodejs-debugging |
I see no problem closing the issue. Overall I am very happy with the debugging progress in Node. Using the --inspect flag and chrome devtools is an immense boost in productivity. Thanks @jasnell @bnoordhuis and all. ✨🙏✨ |
I'm still having this issue by using VS Code 1.13.1 / Node 8.1.1. If I run a gulp task, it won't get finished until I stop the debugger. |
I confirm the same problem with code 1.13.1 and node v8.1.2 |
Still a problem in node v8.1.2. Please re-open. @jasnell |
What is? Please be specific. |
Actual behavior Expected behavior Steps to reproduce
OS: Ubuntu 17.10 & MacOS Sierra |
@millermatt Thanks. Is there reason to assume it's a node.js issue? It sounds like a tooling issue in VS Code. |
microsoft/vscode#5831 (comment) The above issue in the VS Code repo led me to this node.js issue. I can't say for certain whether the problem is with VS Code or node.js. Based on the conversations in both issues it seems more likely that is a node.js problem. |
@millermatt Right, but that was with the old debugger, which has been removed. The inspector (the new debugger) is completely different so it's unlikely to be the same issue. I'd take this up with the VS Code people first. If it does turn out to be a node.js issue, file a new issue and I'll take a look. |
@bnoordhuis Good call - looks like they have a fix for the next release. microsoft/vscode-node-debug2#11 |
For anyone googling, couldn't make the process exit with process.exit() when debugger was attached, but process.kill(process.pid) worked |
This still happens with node 8.7.0 under Webstorm debugging. Seems to be related to node rather than the IDE. |
@georgeionita can you give detailed steps to reproduce? |
In both
io.js
andnode.js >= 0.12
have this issue.OS:
osx & ubuntu 14
Reproduce steps:
a.js
node debug a.js
c
tocontinue
Then the stdout should have:
But currently, it only have
> debug
c
tocontinue
and make the process close, but it just stuck there waiting for v8 response.It happen when I write my own debugger. It seems that the debug server should knows that the process is terminated, but it didn't.
The text was updated successfully, but these errors were encountered: