-
Notifications
You must be signed in to change notification settings - Fork 646
Program hangs at start on "Start Without Debugging" #1084
Comments
Have the same issue. Simpliest project
Start it by F5 or ctrl+F5, enter number 123, hit Enter, got
VSCode Version 1.13.1 |
You must be having a debug configuration in your Change that to "Start without debugging" attempts to run Now, if the program attribute points to a directory instead, the extension should fall back to debug mode which it clearly didn't and this is a bug. Am currently out at a conference, will look into the bug in fallback once I get back. Until then please use the workaround mentioned above. Thanks for reporting! |
Until I get back, if anyone wants to take a look at this issue, then read https://github.com/Microsoft/vscode-go/blob/master/src/debugAdapter/Readme.md first. My guess is that the IntiializeEvent is never sent back from the |
That workaround works - thanks a lot! |
This fix for this issue is now out in the latest update (0.6.63) to the Go extension |
@lansman Can you share your debug configuration? |
The problem persists with or without launch.json |
Ah! sorry @lansman. I only saw the repro steps of @realityexists and fixed the issue pertaining there. Your issue is more about running programs that are interactive. @roblourens When something is typed in the debug console after running |
I can confirm my original issue is fixed in 0.6.63 - thanks! |
VS Code 1.14.0, Go extension 0.6.62, Go 1.8.3, dlv 1.0.0-rc.1 on Windows 7 x64
Whenever I try to run a program using "Start Without Debugging" (Ctrl+F5) the Debug Console window shows
and stops there. The program appears to be running, because the toolbar with pause, stop, etc. buttons appears, but no further output is shown. Process Hacker also shows the "debug" process still running, with "dlv.exe" as its parent. This happens even for the simplest "Hello world" program, like this.
If I press Enter at the Debug Console prompt I get this error:
The error looks like the same error as #473, except I only get this when trying to run without the debugger (Ctrl+F5). It works if I run under the debugger (F5).
I don't understand why the debugger (dlv.exe) is running at all when I've selected "Start Without Debugging"!
The text was updated successfully, but these errors were encountered: