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
+5.3k Golang : The Tao of importing package
+7.6k Golang : Create zip/ePub file without compression(use Store algorithm)
+9.3k Golang : Generate Codabar
+7.1k Golang : Find the shortest line of text example
+12.2k Golang : md5 hash of a string
+19.4k Golang : Display list of time zones with GMT
+7.8k Golang : get the current working directory of a running program
+7.3k Golang : Of hash table and hash map
+20k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+7.5k Golang : Check to see if *File is a file or directory
+10.8k Golang : Interfacing with PayPal's IPN(Instant Payment Notification) example