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

 

原文:https://www.jianshu.com/p/e4cca4fe6478

--------------------

 

文件夹下.vscode/launch.json文件:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "golang",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            //当运行单个文件时{workspaceFolder}可改为{file}
            "program": "${workspaceFolder}",
            "env": {},
            "args": []
        }
    ]
}


作者:湛墨染
链接:https://www.jianshu.com/p/e4cca4fe6478
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
上一篇:《VSCode 配置 C、C++开发》


下一篇:常见前端面试题之HTML/CSS部分