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
2017/07/12 13:34:58 server.go:73: Using API v1
2017/07/12 13:34:58 debugger.go:97: launching process with args: [...\hello\debug]
API server listening at: 127.0.0.1:2345
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.
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello world")
}
If I press Enter at the Debug Console prompt I get this error:
TypeError: Cannot read property 'currentGoroutine' of null
at GoDebugSession.evaluateRequest (C:\Users\Rey\.vscode\extensions\lukehoban.go-0.6.62\out\src\debugAdapter\goDebug.js:668:45)
at GoDebugSession.DebugSession.dispatchRequest (C:\Users\Rey\.vscode\extensions\lukehoban.go-0.6.62\node_modules\vscode-debugadapter\lib\debugSession.js:430:22)
at GoDebugSession.ProtocolServer._handleData (C:\Users\Rey\.vscode\extensions\lukehoban.go-0.6.62\node_modules\vscode-debugadapter\lib\protocol.js:104:38)
at Socket.<anonymous> (C:\Users\Rey\.vscode\extensions\lukehoban.go-0.6.62\node_modules\vscode-debugadapter\lib\protocol.js:24:60)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at Pipe.onread (net.js:551:20)
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"!
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"!