vscode debug asctions
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
.vscode
|
||||
prompts
|
||||
mend
|
||||
__debug*
|
||||
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
{
|
||||
// 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": "Attach (bubbletea)",
|
||||
"type": "go",
|
||||
"debugAdapter": "dlv-dap",
|
||||
"request": "attach",
|
||||
"mode": "remote",
|
||||
"remotePath": "${workspaceFolder}",
|
||||
"port": 2345,
|
||||
"host": "127.0.0.1",
|
||||
"preLaunchTask": "Run headless dlv"
|
||||
},
|
||||
{
|
||||
"name": "Connect to server",
|
||||
"type": "go",
|
||||
"request": "attach",
|
||||
"mode": "remote",
|
||||
"remotePath": "${workspaceFolder}",
|
||||
"port": 2345,
|
||||
"host": "127.0.0.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+34
@@ -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:"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user