Files
tasks/.vscode/launch.json
Chetan GowdaandGitHub 0f73bdf8b2 [VSCode] Config to connect debugger to a running server instance (#6983)
## What changed?
A new config entry to allow VSCode debugger to connect to a local
running instance of server.

## Why?
Makes it easy to quickly connect and breakpoint a dev server. No need to
restart the server in debugger everytime.

## How did you test it?
Tested it manually

## Potential risks
N/A

## Documentation
N/A

## Is hotfix candidate?
No
2024-12-12 23:01:18 +00:00

96 lines
1.8 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Running Server",
"type": "go",
"request": "attach",
"mode": "local",
"cwd": "${workspaceFolder}",
},
{
"name": "Debug single functional test method",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${relativeFileDirname}",
"args": [
"-testify.m",
"${input:functionalTestSuiteMethod}"
]
},
{
"name": "Debug Server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/server",
"cwd": "${workspaceFolder}",
"args": [
"start",
]
},
{
"name": "Debug Active Server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/server",
"cwd": "${workspaceFolder}",
"args": [
"--env",
"development-active",
"start",
]
},
{
"name": "Debug Server with MySql",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/server",
"cwd": "${workspaceFolder}",
"args": [
"--env",
"development-mysql",
"start",
]
},
{
"name": "Debug Server with PostgreSQL",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/server",
"cwd": "${workspaceFolder}",
"args": [
"--env",
"development-postgres",
"start",
]
},
{
"name": "Debug Server with SQLite",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/server",
"cwd": "${workspaceFolder}",
"args": [
"--env",
"development-sqlite",
"start",
]
},
],
"inputs": [
{
"type": "promptString",
"id": "functionalTestSuiteMethod",
"description": "The method name within the functional test suite that you wish to debug.",
"default": "."
}
]
}