{ "version": "0.2.0", "configurations": [ { "name": "Attach to Delve Server", "type": "go", "request": "attach", "mode": "remote", "host": "127.0.0.1", // dlv服务器的IP地址(如果是本地就是127.0.0.1) "port": 43000, // dlv服务器监听的端口 "remotePath": "/root/cache/dcu-process-montor/cmd/hytop", // **重要:远程机器上Go源代码的绝对路径** } ] }