{
"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单步调试代码了。
网友评论