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
+10.5k Golang : Select region of interest with mouse click and crop from image
+9.1k Golang : Generate Codabar
+25.2k Golang : Get current file path of a file or executable
+4.6k Chrome : How to block socketloop.com links in Google SERP?
+7.8k Javascript : Put image into Chrome browser's console
+6.6k Golang : Reverse by word
+17.9k Golang : How to log each HTTP request to your web server?
+10.2k Golang : Wait and sync.WaitGroup example
+3.6k Golang : Switch Redis database redis.NewClient
+5.9k Golang : Compound interest over time example
+13.9k Golang: Pad right or print ending(suffix) zero or spaces in fmt.Printf example