Server debugging support for vscode.
All checks were successful
Linting and tests / Linting (push) Successful in 5s

This commit is contained in:
2025-09-14 12:38:45 +05:00
parent 3cfc74affa
commit 466b58b41d
9 changed files with 128 additions and 17 deletions

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

@@ -0,0 +1,25 @@
{
// Используйте IntelliSense, чтобы узнать о возможных атрибутах.
// Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов.
// Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "bunkerd docker debug",
"type": "go",
"debugAdapter": "dlv-dap",
"request": "attach",
"mode": "remote",
"port": 54401,
"host": "127.0.0.1",
"stopOnEntry": true,
"substitutePath": [
{
"from": "${workspaceFolder}",
"to": "bunker"
}
],
"preLaunchTask": "Run bunkerd debug build"
}
]
}

18
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run bunkerd debug build",
"type": "shell",
"command": "task server:localdev:bunkerd:build-debug && task server:localdev:bunkerd:restart-debug",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
// Do not open terminal every time debug is launched.
"reveal": "silent"
}
}
]
}