How do I debug a program written in the Go language?

Viewed 32054

How do I debug a Go program? I have been using the Gedit Go IDE, but it doesn't have debugging. Is there a way to step though my code and inspect memory? Or am I stuck with print statements? Can I use OutputDebugString?

9 Answers

Get the JetBrains Toolbox, download GoLand, click on the left side of the editor, and it'll set a breakpoint.

Related