What is the best method of debugging go code in Windows?
https://stackoverflow.com/a/5514122/201618 states the GBD cannot be used as
Windows and ARM binaries do not contain DWARF debugging information and, as such, cannot be inspected with GDB.
https://stackoverflow.com/a/3405768/201618 implies that the best thing to do is just use fmt.Println
Is there a better current option? Is there a better planned future option?
To debug a program, execute the dlv debug command. Attach the filename at the end of this command, and debugging will start. For example, if you want to debug the main.go file, run the command dlv debug main.go . It is also known as “delve server” because this is a running process waiting for instructions.
In addition to GDB you can use Zeus. Also, take a look to comparison of IDEs for Google Go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With