ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

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

2022-06-14 00:31:35  阅读:452  来源: 互联网

标签:Code liufarong.666 kubeconfig Golang json VS go home config


在 .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

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有