美文网首页
vs code go lunch.json

vs code go lunch.json

作者: 東玖零 | 来源:发表于2020-07-14 16:19 被阅读0次
can't load package: package abc/.vscode: no Go files in /Users/adong/Documents/workspace/services/go/src/abc/.vscode

exit status 1

Process exiting with code: 1
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
            "env": {},
            "args": []
        }
    ]
}

"program": "${fileDirname}/..", 只需要在后加面加 /.. 就可以了。

相关文章

网友评论

      本文标题:vs code go lunch.json

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