dlv
Debugger for the Go programming language. tldr-pages
On several platforms
Several platforms
Compile and begin debugging the main package in the current directory (by default, with no arguments)
dlv debugIdentifyCompile and begin debugging a specific package
dlv debug package argumentsIdentifyCompile a test binary and begin debugging the compiled program
dlv testIdentifyConnect to a headless debug server
dlv connect ip_addressIdentifyAttach to a running process and begin debugging
dlv attach process_idIdentifyCompile and begin tracing a program
dlv trace package --regexp 'regex'Identify