-
Notifications
You must be signed in to change notification settings - Fork 645
When hitting Stop during Debug, it does not always kill debug process #438
Comments
What OS, and do you have a full precise repro? I tried a few times on Windows and OSX with the closest full example I could derive from the above and couldn't reproduce this. Happy to reopen if you have more info to investigate. |
Sure. I am using Debian Testing with Google Chrome Version 52.0.2743.116 (64-bit) and VS code Version 1.4.0:
Here is an example code that I used to successfully verify the issue:
launch.json:
Steps to reproduce:
\3. Open browser and go to http://localhost:8080. You will see "hello
\7. Hit F5 again and you will get error
You can use pidof again and you will see that it is still the same process. |
Can confirm this. Seeing this exact same behavior with go debugging using this vscode extension on Arch Linux. |
same behavior with Ubuntu 16.04 and vscode 1.5.1 |
|
Same here. Ubuntu 14.04, vscode 1.6.0, vscode-go 0.6.44 |
I can repro this, and confirm that it works correctly with delve. So maybe we can do whatever delve does. |
Hi, I'm getting the same messages 2016/10/22 13:37:09 server.go:71: Using API v1 Is there a way to clear the messages? Thank you OSX 10.12 |
@jferrer21 As far as I can see, your messages are not "errors" but rather informative. It would be an error if it had the line Otherwise you can get rid of those messages by setting |
I didn’t get the last line. Thank you for the info, about setting the showLog. |
Getting the same behaviour on Mint 18 with the vscode 1.7.1 and go 1.7.3. |
same behavior with ubuntu 14.04.5 LTS and vscode 1.8.1 |
Same here. Ubuntu 16.04, vscode 1.8.0, vscode-go 0.6.51 |
Same here Ubuntu 16.04 vscode 1.8.0 |
Same here Ubuntu 16.04 and VSCode 1.9.0 and Go Extension 0.6.53 |
I can't repro the issue and so cannot test the fix. Can anyone on this thread volunteer to test this?
|
@ramya-rao-a I was trying out the steps you provided. However, at
|
@intdel Am not sure why you are seeing that error, I am able to Nevertheless, you can comment the line for |
@ramya-rao-a Thanks. Now I am getting
|
wow, can you share what version of node, npm and typescript you have? |
In package.json I had to remove all of the devdependencies with "@types" otherwise I could not run npm install. Not sure if this is the reason. I am running this on Debian Jessie. |
Yay! Thanks @intdel !! |
Getting the same behaviour on Manjaro with the vscode 1.9.1 ,vscode-go 0.6.53 and go 1.8. |
@YCF Thanks for reporting, the fix will out in the next update of the Go extension early next week. |
Any update on this? It's pretty annoying to use the debugger on linux right now. edit: I see you are preparing to release this update now haha. Sorry for my impatience. |
Fixed in the latest update (0.6.54) to the Go extension. @cevn This update was due for a while, sorry to keep you waiting :) |
0.6.54 this fix not worked. I binding hotkey F4-> "killall debug" |
@YCF That would probably be a different issue. The Can you open a new issue and tell us your OS, vscode version, etc? |
Exactly the same error here. vscode 1.10.1 @YCF Could you send me the binding code? |
@kisPocok I set it in windows manager not in vscode: your OSX maybe here: |
Fixed at go extension 0.6.55 |
ArchLinux still have this behavior. |
@hyacinthus Can you share sample code and repro steps? Are you saying that using the same code in other platforms in VS Code, you don't see the issue? |
Yes,I use Windows 10, Mac OS, and Archlinux in different places, but same project. Only Archlinux have this issue. I must kill dlv and debug process every time. When I arrive my office next Monday , I'll create a simple demo to try if this behavior appears in every golang project. |
@roblourens Can you think of any reason why this solution wouldn't work in just linux? |
It should work. The code that kills the processes is
I don't know if there's something particular about archlinux that would make this not work. |
@ramya-rao-a After the upgrade 1.13, it no longer appears this morning. |
Hello all, We have revisited the fix to this issue by using the detach command from dlv instead of manually killing the processes from our end. I would appreciate it, if anyone here can give the fix a try. Please follow the below instructions to do so:
|
I am running a web server in Go (1.6) with visual studio code and the most recent plugin:
When I hit the stop button on the small debug window, it does not kill the webserver, because after I hit F5 again I get:
So I will have to look manually for the PID and kill it. Then it works again.
The text was updated successfully, but these errors were encountered: