测试项目地址:https://github.com/radrupt/kratos-vscode
main文件在cmd/hellowworld2/ 中
生成: go build -o ./bin/ ./...
执行:./bin/helloworld2 -conf ./configs
想知道如何在vscode中来debug
已解决
// lanuch.json
```
{
// 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 file",
"type": "go",
"request": "launch",
"mode": "debug",
"skipFiles": ["${workspaceFolder}/cmd/basic_resource/wire.go"],
"program": "${workspaceFolder}/cmd/basic_resource",
"args": ["-conf", "${workspaceFolder}/configs/"]
}
]
}
```
#1