NotePublic/Software/Development/Language/Go/Package/Delve/Go_dlv_远程调试.md

10 lines
262 B
Markdown
Raw Normal View History

# Go dlv 远程调试
```bash
dlv debug --headless --api-version=2 -l "<ip>:<port>" -- <arg list>
# 或
dlv exec --headless --api-version=2 -l "<ip>:<port>" </absolute/path/to/program> -- <arg list>
```
之后用任意 Go IDE 连接即可进行远程调试。