Does any golang interactive debugger exist?

Daniel Williams picture Daniel Williams · May 11, 2013 · Viewed 38.2k times · Source

The title pretty much sums it up. I am trying out Go and I really miss being able to set breakpoints and step in/over/out as much as I want within an interactive environment. I know I can use gdb to debug Go but that is quite annoying compared to using an IDE that can plug into gdb for breakpointing.

I tried searching for one and could only find plugins or small IDEs that have syntax highlighting but no debugging.

Answer

Benjamin Gruenbaum picture Benjamin Gruenbaum · May 11, 2013

Update: Personally, while GDB works I'm not a fan of using it in Go and it will make you spit some blood. Check out some of the other answers for good alternatives.


Yes, of course :)

Go has a debugger (GDB)

Here is the official tutorial on how to use it.

If you'd like 'graphical debugging' (that is, setting breakpoints in the editor) some IDEs let you do that (with GDB in the background).

In specific, Eclipse, LiteIDE and Zeus all let you set breakpoints and debug from your coding environment (source). Here is a video on how to do it with Zeus.