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.2k Golang : How to validate URL the right way
+9.3k Golang : Convert date string to variants of time.Time type examples
+24.8k Golang : Remove dashes(or any character) from string
+2.3k PHP : Extract part of a string starting from the middle
+5.8k Golang : Gin framework accept query string by post request example
+9.6k Golang : Use regular expression to validate domain name
316 Golang : package is not in GOROOT during compilation
+5.8k Golang : Get local time and equivalent time in different time zone
+6.7k Swift : Convert (cast) Int or int32 value to CGFloat
+12.7k Golang : How to count the number of repeated characters in a string?
+2k MariaDB/MySQL : Form select statement or search query with Chinese characters
+6k Golang : Transform comma separated string to slice example