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
+11.2k Golang : Byte format example
+6.9k Golang : How to setup a disk space used monitoring service with Telegram bot
+7.1k Nginx : How to block user agent ?
+6.5k Golang : Warp text string by number of characters or runes example
+5.2k Golang : Calculate half life decay example
+6.9k Golang : How to solve "too many .rsrc sections" error?
+35k Golang : Upload and download file to/from AWS S3
+10.9k Golang : Replace a parameter's value inside a configuration file example
+17.3k Golang : Check if IP address is version 4 or 6
+5.9k Golang : Extract unicode string from another unicode string example
+30.5k Golang : Remove characters from string example
+4.3k Golang : Valued expressions and functions example