-
Notifications
You must be signed in to change notification settings - Fork 647
Manjaro, Delve, and VScode debug is not working #1752
Comments
Same issue here with Windows 10. Command line works fine |
Have exactly same environment as OP mentioned and same problem. When I have debugging tab opened, there is indefinite (blue) loader under the configurations and debug button bar. On debug cancel there is error alert to check debug output, but nothing along existing output from OP is there. |
Windows 10 x64 After updating to the latest of all of the above, I also experienced "hanging" while trying to debug. I tested that this occurs on 2 of my computers after using all the latest installs. I found that the following 2 changes were necessary to resolve my issue, at least as a workaround. For anyone looking to use this workaround, you can modify the .js versions of these files in your %userprofile%/.vscode/extensions/ms-vscode.go-0.6.83/out/src folder, though the line numbers will differ. Also, once debugging, the "Restart" option still throws an error. |
I'm having the same issue using macOS and Go 1.10.3. @Sharpiro temporary fix worked on my end! |
Confirming @Sharpiro fix also works for me (seems like all those versions have also fixed some bugs I've experienced before). |
Having the same issue here. @Sharpiro workaround works for me too. Using: |
Which .js version is working? |
me too!!! OS is win10 and Can debug files be deleted automatically after running? |
The same thing on Ubuntu: Applied Sharpiro workaround in goDebug.ts and I am able to debug go again ! |
I can confirm this bug on Arch Linux. Sharpiro patch works for me too. Thank you very much @Sharpiro. |
Hi, |
Delve master includes this change derekparker/delve@a208c89#diff-85f7e39a17e446f5b7c743ad1f0ed3d8L539. This commit changed destination of message from stdout to stderr. If we continue to hook some message arrival from |
Indeed, it seems that @Sharpiro and @yui-knk hit the spot The switch to logrus also switched the default output stream of the init messages to stderr. The workaround should fix it, although If not synchronized, and the debugProcess event handlers are non-blocking we could have a datarace causing multiple connectClient calls What do you think @ramya-rao-a ? |
The previous log was restored, it should work again after updating delve from master |
Confirmed, updated delve on OSX using HEAD and anything works like a charm. |
I can confirm the latest delve commit fixes the debug issue. However, "restarting" a debug session for a test still fails. It looks like the test arguments do not get passed upon restart and the extension attempts to debug the file as if it were a "main" package, causing an error to occur. |
@Sharpiro That seems like a separate issue. Were you trying to debug tests using the codelens or a debug configuration? |
It occurs when debugging a test using code lens. I'm fairly sure it worked in the past. |
ok thanks. you're right the restart debug doesn't seem to be related to this issue. |
Closing this issue as the fix has been made upstream in delve |
Environment:
OS: Manjaro 17.10
Go: go version go1.10.3 linux/amd64
dlv: lastest
Steps to Reproduce:
1.press go on vscode debugger
Error: stuck there, can not go on.
launch.json
The text was updated successfully, but these errors were encountered: