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
+7.2k Golang : Squaring elements in array
+4.9k Golang : A program that contain another program and executes it during run-time
+10.5k Golang : cannot assign type int to value (type uint8) in range error
+23.3k Golang : Print out struct values in string format
+5.9k Unix/Linux : Get reboot history or check when was the last reboot date
+16.6k Golang : Get IP addresses of a domain name
+13.3k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+17.1k Golang : Set up source IP address before making HTTP request
+36.6k Golang : How to split or chunking a file to smaller pieces?
+10.4k Golang : Random Rune generator
+6.4k Golang : Extract sub-strings
+5.6k Golang *File points to a file or directory ?