vscore 写go语言,debug
需要添加运行 debug 使用的配置文件
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package", // debug的选项名称
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/admin/build/main.go", // 要启动的main函数的位置
//"env": {}, // 环境变量,还有其他的一些参数。
// "args": ["--conf", "${workspaceFolder}/admin/build/config.yaml"]
// "args": ["--svr", "display"]
}
]
}