go 语言调试工具; golang debuger; delve; gdb

最近经常使用go语言写项目;遇到问题时通常使用 fmt.print 或者  log.info 进行打印日志 进行调试;本篇主要记录一些调试工具相关的信息,方便我个人的使用;

Debugging Go applications using Delve: 

https://www.melvinvivas.com/debugging-go-applications-using-delve/

https://github.com/go-delve/delve

https://golang.org/doc/gdb 一手资料

Note that Delve is a better alternative to GDB when debugging Go programs built with the standard toolchain. It understands the Go runtime, data structures, and expressions better than GDB. Delve currently supports Linux, OSX, and Windows on amd64. For the most up-to-date list of supported platforms, please see the Delve documentation.

GDB does not understand Go programs well. The stack management, threading, and runtime contain aspects that differ enough from the execution model GDB expects that they can confuse the debugger and cause incorrect results even when the program is compiled with gccgo. As a consequence, although GDB can be useful in some situations (e.g., debugging Cgo code, or debugging the runtime itself), it is not a reliable debugger for Go programs, particularly heavily concurrent ones. Moreover, it is not a priority for the Go project to address these issues, which are difficult.

https://github.com/google/pprof

原文地址:https://www.cnblogs.com/xuyaowen/p/go-debuger.html