launch.json 505 Bytes
Newer Older
liming6's avatar
liming6 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
    "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源代码的绝对路径**
        }
    ]
}