Golang : Debug with Godebug
A quick note on debugging in Golang and the latest tool that a sane Golang developer should check out and use.
No sane programmer will claim to have written bug free programs throughout this her/his career.
A program will not be bug free ... simply because the tool/compiler used to create the program is also not entirely bug free.
A programmer job is to test and debug the program as much as possible.
Just found out about this excellent cross-platform debugging tool created specifically for Golang - Godebug ( https://github.com/mailgun/godebug )
Godebug modifies the code runs and stops at breakpoints. Letting you to step through the program and inspect variables.
Still pretty new and hope to see IDEs integration in future to make it interactive.
Also, good read at http://blog.golang.org/cover and old ways of debugging Go program at http://golang.org/doc/gdb
Reference :
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+18.9k Golang : Check if directory exist and create if does not exist
+4.5k Unix/Linux : How to pipe/save output of a command to file?
+30.1k Golang : How to redirect to new page with net/http?
+12.3k Golang : Send data to /dev/null a.k.a blackhole with ioutil.Discard
+12.4k Golang : zlib compress file example
+13.7k Golang: Pad right or print ending(suffix) zero or spaces in fmt.Printf example
+4.7k Unix/Linux : secure copying between servers with SCP command examples
+5.6k CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag
+8.1k Golang: Prevent over writing file with md5 hash
+10.8k How to test Facebook App on localhost ?
+18.5k Golang : Padding data for encryption and un-padding data for decryption
+4.6k Nginx and PageSpeed build from source CentOS example