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
+8.6k Golang : How to check if input string is a word?
+19.6k Golang : How to count the number of repeated characters in a string?
+6.9k Golang : Output or print out JSON stream/encoded data
+25.5k Golang : Get current file path of a file or executable
+16.1k Golang : Get digits from integer before and after given position example
+12.1k Golang : GTK Input dialog box examples
+7.2k Golang : Get Alexa ranking data example
+8.4k Android Studio : Rating bar example
+20.7k nginx: [emerg] unknown directive "passenger_enabled"
+10.1k Golang : Sort and reverse sort a slice of integers
+13.1k Swift : Convert (cast) Int to String ?
+8k Golang : Load DSA public key from file example