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
+15.1k Golang : Check if a string contains multiple sub-strings in []string?
+11.4k Golang : Exit, terminating or aborting a program
+13.7k nginx: [emerg] unknown directive "ssl"
+9.6k Golang : Bubble sort example
+15.5k Golang : How to generate QR codes?
+7.6k Golang : Combine slices but preserve order example
+15.4k Golang : Set up source IP address before making HTTP request
+5.1k AWS S3 : Prevent Hotlinking policy
+7.3k Golang : How to check if input string is a word?
+7.8k Golang : Write multiple lines or divide string into multiple lines
+8.4k Golang : Qt get screen resolution and display on center example
+5.9k Mac OSX : Find large files by size