NOTE
dlv
These notes record Delve commands for debugging Go programs, including tests and main programs.
This is a historical learning note and may contain outdated or incomplete understanding.
1. Usage
- debug test
dlv test --headless --listen ":2345" --log --api-version 2
- debug main
dlv debug --headless --listen ":2345" --log --api-version 2
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub