dlv
Debugger for the Go programming language. More information: https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv.md.
- Compile and begin debugging the main package in the current directory (by default, with no arguments):
dlv debug
- Compile and begin debugging a specific package:
dlv debug
- Compile a test binary and begin debugging the compiled program:
dlv test
- Connect to a headless debug server:
dlv connect
- Attach to a running process and begin debugging:
dlv attach
- Compile and begin tracing a program:
dlv trace --regexp ''
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
