vscode debug asctions

This commit is contained in:
2026-01-18 01:43:10 +00:00
parent 5e82fc5914
commit f35debb152
3 changed files with 62 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run headless dlv",
"type": "process",
"command": "dlv",
"args": [
"debug",
"--headless",
"--listen=:2345",
"--api-version=2",
"--continue",
"--accept-multiclient",
".",
"--",
"sample"
],
"isBackground": true,
"problemMatcher": {
"owner": "go",
"fileLocation": "relative",
"pattern": {
"regexp": "^couldn't start listener:"
},
"background": {
"activeOnStart": true,
"beginsPattern": "^API server listening at:",
"endsPattern": "^API server listening at:"
}
}
}
]
}