Vscode Golang 项目调试

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch System",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceRoot}/cmd/system_services/"
        } 
    ]
}

其中program填写main.go入口路径,添加到.vscode/launch.js就可以按F5单步调试代码了。

你可能感兴趣的:(Vscode Golang 项目调试)