tags:

views:

172

answers:

2

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?

+1  A: 

There is an experimental debugger package called ogle. Not sure how well it works.

Annie
+2  A: 

It's unfortunate, but the best way right now is to use print functions. The built-in print and println will work, but the functions in fmt will sometimes work better depending on what information you're after.

Evan Shaw