Breakpoint ignored due to "protocol error E09 during set breakpoint for packet" error
younker opened this issue · comments
Jason Younker commented
➜ /Users/jasonyounker/go/bin/dlv version
Delve Debugger
Version: 1.22.0
Build: $Id: 61ecdbbe1b574f0dd7d7bad8b6a5d564cce981e9 $
➜ go version
go version go1.21.0 darwin/arm64
➜ sw_vers
ProductName: macOS
ProductVersion: 14.0
BuildVersion: 23A344
What did you do?
- added breakpoint to
internal/model/serp_query.go
line 21 - from test, selected
Run -> Start Debugging
What did you expect to see?
I expected the test to run and for execution to stop on the breakpoint
What did you see instead?
The test ran without stopping on the breakpoint.
My launch config looks like the following:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"logOutput": "dap",
"showLog": true,
}
]
}
to my launch config and re-ran. It produced the following logs in the debug console:
Starting: /Users/jasonyounker/go/bin/dlv dap --log=true --log-output=dap --listen=127.0.0.1:56826 --log-dest=3 from /Users/jasonyounker/projects/setl/internal/model
DAP server listening at: 127.0.0.1:56826
2024-01-18T15:11:30-05:00 debug layer=dap DAP server pid = 10928
2024-01-18T15:11:30-05:00 debug layer=dap DAP connection 1 started
2024-01-18T15:11:30-05:00 debug layer=dap [<- from client]{"seq":1,"type":"request","command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"go","locale":"en","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path","supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"supportsMemoryReferences":true,"supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryEvent":true,"supportsArgsCanBeInterpretedByShell":true,"supportsStartDebuggingRequest":true}}
2024-01-18T15:11:30-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"supportsSetVariable":true,"supportsExceptionInfoRequest":true,"supportsDelayedStackTraceLoading":true,"supportsLogPoints":true,"supportsDisassembleRequest":true,"supportsClipboardContext":true,"supportsSteppingGranularity":true,"supportsInstructionBreakpoints":true}}
2024-01-18T15:11:30-05:00 debug layer=dap [<- from client]{"seq":2,"type":"request","command":"launch","arguments":{"name":"Launch Package","type":"go","request":"launch","mode":"test","program":".","logOutput":"dap","showLog":true,"__configurationTarget":6,"packagePathToGoModPathMap":{"/Users/jasonyounker/projects/setl/internal/model":"/Users/jasonyounker/projects/setl/internal/model","/Users/jasonyounker/projects/setl/serp_insights/task":"/Users/jasonyounker/projects/setl/serp_insights"},"debugAdapter":"dlv-dap","showRegisters":false,"showGlobalVariables":false,"substitutePath":[],"dlvFlags":[],"hideSystemGoroutines":false,"dlvToolPath":"/Users/jasonyounker/go/bin/dlv","env":{"GOPATH":"/Users/jasonyounker/go"},"__buildDir":"/Users/jasonyounker/projects/setl/internal/model","__sessionId":"058c4ea2-bb4f-486a-997c-162b506bb7a7"}}
2024-01-18T15:11:30-05:00 debug layer=dap parsed launch config: {
"mode": "test",
"program": ".",
"buildFlags": {},
"env": {
"GOPATH": "/Users/jasonyounker/go"
},
"backend": "default",
"stackTraceDepth": 50
}
2024-01-18T15:11:31-05:00 debug layer=dap building from "/Users/jasonyounker/projects/setl/internal/model": [go test -c -o /Users/jasonyounker/projects/setl/internal/model/__debug_bin3794915190 -gcflags all=-N -l .]
2024-01-18T15:11:31-05:00 debug layer=dap launching binary '/Users/jasonyounker/projects/setl/internal/model/__debug_bin3794915190' with config: {
"mode": "test",
"program": "/Users/jasonyounker/projects/setl/internal/model",
"cwd": "/Users/jasonyounker/projects/setl/internal/model",
"buildFlags": {},
"output": "/Users/jasonyounker/projects/setl/internal/model/__debug_bin3794915190",
"dlvCwd": "/Users/jasonyounker/projects/setl/internal/model",
"env": {
"GOPATH": "/Users/jasonyounker/go"
},
"backend": "default",
"stackTraceDepth": 50
}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"event","event":"initialized"}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":2,"success":true,"command":"launch"}
2024-01-18T15:11:32-05:00 debug layer=dap [<- from client]{"seq":3,"type":"request","command":"setBreakpoints","arguments":{"source":{"name":"serp_query.go","path":"/Users/jasonyounker/projects/setl/internal/model/serp_query.go"},"breakpoints":[{"line":21}],"lines":[21]}}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"verified":false,"message":"protocol error E09 during set breakpoint for packet $Z0,7ff800051406,4"}]}}
2024-01-18T15:11:32-05:00 debug layer=dap [<- from client]{"seq":4,"type":"request","command":"setFunctionBreakpoints","arguments":{"breakpoints":[]}}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
2024-01-18T15:11:32-05:00 debug layer=dap [<- from client]{"seq":5,"type":"request","command":"setInstructionBreakpoints","arguments":{"breakpoints":[]}}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":5,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]}}
2024-01-18T15:11:32-05:00 debug layer=dap [<- from client]{"seq":6,"type":"request","command":"configurationDone"}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"event","event":"output","body":{"category":"console","output":"Type 'dlv help' for list of commands.\n"}}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":6,"success":true,"command":"configurationDone"}
Type 'dlv help' for list of commands.
2024-01-18T15:11:32-05:00 debug layer=dap [<- from client]{"seq":7,"type":"request","command":"threads"}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[{"id":-1,"name":"Current"}]}}
PASS
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"event","event":"terminated","body":{}}
2024-01-18T15:11:32-05:00 debug layer=dap [<- from client]{"seq":8,"type":"request","command":"disconnect","arguments":{}}
2024-01-18T15:11:32-05:00 debug layer=dap halting
2024-01-18T15:11:32-05:00 debug layer=dap process not running
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"event","event":"output","body":{"category":"console","output":"Process 11223 has exited with status 0\n"}}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"event","event":"output","body":{"category":"console","output":"Detaching\n"}}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"response","request_seq":8,"success":true,"command":"disconnect"}
2024-01-18T15:11:32-05:00 debug layer=dap [-> to client]{"seq":0,"type":"event","event":"terminated","body":{}}
2024-01-18T15:11:32-05:00 debug layer=dap DAP server stopping...
Process 11223 has exited with status 0
Detaching
2024-01-18T15:11:32-05:00 debug layer=dap DAP server stopped
Alessandro Arzilli commented
Alessandro Arzilli commented
Closing, likely duplicate of those other issues.