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
+9.4k Golang : Web(Javascript) to server-side websocket example
+47.9k Golang : Convert int to byte array([]byte)
+12.9k Golang : Convert IPv4 address to packed 32-bit binary format
+36.6k Golang : Validate IP address
+7.2k Golang : Transform lisp or spinal case to Pascal case example
+15.3k Golang : Get timezone offset from date or timestamp
+22.2k Golang : Match strings by wildcard patterns with filepath.Match() function
+6.1k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)
+14.4k Golang : On enumeration
+14.6k Golang : Convert(cast) int to float example
+6.4k CodeIgniter : form input set_value cause " to become & quot
+5k JQuery : Calling a function inside Jquery(document) block