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

188 B

Go dlv 远程调试

dlv exec --headless --api-version=2 -l "<ip>:<port>" </absolute/path/to/program> -- <arg list>

之后用任意 Go IDE 连接即可进行远程调试。