mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## 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
96 lines
1.8 KiB
JSON
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": "."
|
|
}
|
|
]
|
|
}
|