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

文件夹下.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)