Hacker News new | ask | show | jobs
by venuzr 4780 days ago
What is the recommended way to go about debugging a Go program? Is there something better than GDB if I want to look at the call stack, have breakpoints, look at the state of variables etc.

Using GDB seems akin to working with assembly

2 comments

There're a few Go IDEs that integrate GDB into the IDE.

http://geekmonkey.org/articles/20-comparison-of-ides-for-goo...

I'm the author of one of them (Zeus) and while the results are not as slick as the Visual Studio debugger it's a better than straight out GDB.

the %v and %T flags to the printing package. surprisingly powerful :)