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
+8.1k Golang: Prevent over writing file with md5 hash
+12.4k Golang : Remove or trim extra comma from CSV
+10.4k Golang : Bubble sort example
+42.9k Golang : Get hardware information such as disk, memory and CPU usage
+11.5k Golang : GTK Input dialog box examples
+19.9k Golang : How to get struct tag and use field name to retrieve data?
+5.2k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+6.3k Golang : Combine slices of complex numbers and operation example
+7.1k Linux : How to fix Brother HL-1110 printing blank page problem
+17.8k Golang : Check if a directory exist or not
+5.6k Cash Flow : 50 days to pay your credit card debt
+19.8k Golang : Reset or rewind io.Reader or io.Writer