-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command failed: protocol error E09 during set breakpoint for packet #1116
Comments
That's likely, debugservice can not set software breakpoints. |
For what its worth, I had the same issue and determined it was due to Cylance (an antivirus / malware / security app). Whitelisting |
Closing, likely not (our) bug. |
Thank you @hankjacobs! This was infuriating. |
I am experiencing the same problem, but I can't find anything to whitelist this in (no Cylance or other things that I know of, and the laptop is fresh out of the store, so no corporate stuff). Googling this problem returns literally only this page, so I thought I might as well ask for help here. Here are the versions I have installed, and the error I am seeing: > go version
go version go1.16.5 darwin/amd64
> dlv version
Delve Debugger
Version: 1.6.1
Build: $Id: 114218c22f3791287c4bc2f4ff35a846a1416ee9 $
> sw_vers
ProductName: macOS
ProductVersion: 11.4
BuildVersion: 20F71
> dlv debug cmd/main.go
Type 'help' for list of commands.
(dlv) b main.main
Command failed: protocol error E09 during set breakpoint for packet $Z0,7ffd012df4fb,4 Perhaps you could help me root cause this? Or maybe point me someplace I can get help? Thanks! Found solutionIt seems that on M1 mac laptops, we need to install the ARM version of go and not the AMD version:
Now, lets try again: > go version
go version go1.16.6 darwin/arm64
> dlv version
Delve Debugger
Version: 1.6.1
Build: $Id: 114218c22f3791287c4bc2f4ff35a846a1416ee9 $
> sw_vers
ProductName: macOS
ProductVersion: 11.4
BuildVersion: 20F71
> dlv debug cmd/main.go
Type 'help' for list of commands.
(dlv) b main.main
Breakpoint 1 (enabled) set at 0x102cf67e0 for main.main() ./cmd/main.go:23
(dlv) c
> main.main() ./cmd/main.go:23 (hits goroutine(1):1 total:1) (PC: 0x102cf67e0)
18: fmt.Printf("Usage: %s %s\n", os.Args[0], strings.Join(arg, " "))
19: os.Exit(1)
20: }
21: }
22:
=> 23: func main() {
24: println("Test module")
25: checkArgs("<arg1>", "<arg2>")
26:
27: logger := logger.NewLogger()
28: config, err := config.ReadConfig(logger)
(dlv) Success! 🥳 |
Hey guys I am using go version go1.18 darwin/arm64 but still get an error protocol error E09 during set breakpoint for packet $Z0,7ff701704851,4 when I set a breakpoint I just use goland |
export GOOS=darwin then restart goland,maybe useful |
thanks,useful |
Hey still not working for me on M1 Mac with Vscode. Spent hours on this already. I am able to get dlv working from command line. ie, if i type
|
I had same problem. |
I had same problem and i figured out it was because i mistakenly installed x86 version of Go while updating. |
Try adding additional config in launch.json, somehow it’s working just fine on my laptop.
|
Goshhh, you just helped me. |
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
dlv version
)?go version
)?ANSWERS:
b main.go:8 (line 8 exists)
Other info: This happens in the work Mac. I have my home Mac running the same setup as above, and it works in that machine. So I was thinking, permission problem with the work Mac? But I also have a setup running in Archlinux in my Parallels Desktop, inside my work Mac; and that version runs!!??
The Parallels VM info is:
So it works in home Mac, and it works in work Mac running Linux VM; but it doesn't work in work Mac..!!?? Any ideas? I'll try to trace the delve code when I have a chance.
The text was updated successfully, but these errors were encountered: