linux go安装 参考: 如何在 Debian / Ubuntu 上安装 Go 开发环境 - 知乎
设置国内源
go env -w GOPROXY=https://goproxy.cn,direct
- git clone https://github.com/derekparker/delve.git
- cd delve/cmd/dlv/
- go build
- go install
-
- ## 默认dlv 会在这里,如果找不到 find / -name dlv
- ls /root/go/bin

dlv --listen=192.168.33.10:2345 --headless=true --api-version=2 --check-go-version=false --only-same-user=false --accept-multiclient exec ./xxx



