Unable to debug, delve issue
已完成
1. I try to debug Test function
2. Debugger doesn't stop at breakpoint
3. In terminal: "unsupported architecture - only linux/amd64 and linux/arm64 are supported"
4. In GoLand settings: Os linux, Arch amd64, Go version 1.14.1
I installed delve from github and it's working fine. Can't replace delve binary as GoLand is installed as Snap in Ubuntu.
请先登录再写评论。
Glad to hear! So, the solution is to use 64-bit Go as delve (the debugger) currently doesn't support the 32-bit architecture.
But on which OS are you running GoLand?
Ubuntu 19
Can you please create a new project with a simple application like func main() { println("") }. Does the debugger work there or are you getting the same error message?
That's weird. What does this code print?
func main() { fmt.Printf("%s/%s", runtime.GOOS, runtime.GOARCH) }linux/386
Thank you for help. I reinstalled go (amd64 version) and everything is working.