美文网首页
【VSCode】golang的调试配置launch.json

【VSCode】golang的调试配置launch.json

作者: 湛墨染 | 来源:发表于2020-08-05 22:43 被阅读0次
文件夹下.vscode/launch.json文件:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "golang",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            //当运行单个文件时{workspaceFolder}可改为{file}
            "program": "${workspaceFolder}",
            "env": {},
            "args": []
        }
    ]
}

相关文章

网友评论

      本文标题:【VSCode】golang的调试配置launch.json

      本文链接:https://www.haomeiwen.com/subject/nlrarktx.html