mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? add the `-tags=test_dep` to the VSCode launch configuration ## Why? Debug fails with a build error ```sh Build Error: go test -c -o /Users/seankane/git/github.com/temporalio/temporal/tests/__debug_bin1525033192 -gcflags all=-N -l . # go.temporal.io/server/tests/testcore testcore/onebox.go:204:39: undefined: testhooks.NewTestHooksImpl testcore/onebox.go:857:23: undefined: testhooks.Set (exit status 1) ``` ## How did you test it? - [ ] built - [X] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks No change to production code, only configuration
99 lines
1.9 KiB
JSON
99 lines
1.9 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",
|
|
"buildFlags": [
|
|
"-tags=test_dep"
|
|
],
|
|
"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": "."
|
|
}
|
|
]
|
|
}
|