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
+6.1k Golang : Spell checking with ispell example
+14.4k Golang : package is not in GOROOT during compilation
+5k Unix/Linux/MacOSx : How to remove an environment variable ?
+10.4k Golang : Fix go.exe is not compatible with the version of Windows you're running
+4.9k Python : Convert(cast) string to bytes example
+10.4k Golang : Removes punctuation or defined delimiter from the user's input
+11.7k Golang : Print UTF-8 fonts on image example
+11.6k Golang : Pagination with go-paginator configuration example
+8.6k Golang : Serving HTTP and Websocket from different ports in a program example
+15.1k Golang : How to convert(cast) IP address to string?
+7.2k Golang : Getting Echo framework StartAutoTLS to work
+15.9k CodeIgniter/PHP : Create directory if does not exist example