feat 增加vscode调试

This commit is contained in:
zhouxhere 2024-11-21 17:57:34 +08:00
parent 39a3d6066b
commit 9cfd944760
1 changed files with 24 additions and 0 deletions

24
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,24 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package in Debug Mode",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "./bin/syz.go",
"args": ["start"]
},
{
"name": "Launch Package in Prod Mode",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "./bin/syz.go",
"args": ["start", "--mode", "prod"]
}
]
}