其他分享
首页 > 其他分享> > VS Code中Golang远程开发的调试和测试

VS Code中Golang远程开发的调试和测试

作者:互联网

在 .vscode 目录下创建如下两个文件
launch.json

{
    "configurations": [
    {
        "name": "Connect to server",
        "type": "go",
        "request": "launch",
        "mode": "exec",
        "program": "${workspaceFolder}/bin/linux_amd64/e2e.test",
        "args": [
            "--kubeconfig", "/home/liufarong.666/.kube/config",
            "-ginkgo.focus", "validates basic preemption works",
        ],
    }
    ]
}

settings.json

{
    "go.testFlags": [
        "--kubeconfig=/home/liufarong.666/.kube/config",
    ]
}

标签:Code,liufarong.666,kubeconfig,Golang,json,VS,go,home,config
来源: https://www.cnblogs.com/lfri/p/16372872.html