Unable to debug, delve issue

Completed

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.

0
8 comments
Official comment

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?

0

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?

0

That's weird. What does this code print?

func main() { fmt.Printf("%s/%s", runtime.GOOS, runtime.GOARCH) }
0

Thank you for help. I reinstalled go (amd64 version) and everything is working.

0

Please sign in to leave a comment.