mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-18 07:01:49 +03:00
[chore] Update vscode launch configuration (#1556)
In order to get testrig we have to build with the debugenv tag and run with the DEBUG environment variable. Since this is a Debug build this also updates the launch configuration name to reflect that. We do not build with `-ldflags="-s -w"` since that strips debug info. This makes it possible to launch GtS from VS Code in debug mode, set breakpoints in the editor etc.
This commit is contained in:
parent
9cfb69f75d
commit
83be140f0b
1 changed files with 6 additions and 2 deletions
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
|
@ -2,14 +2,18 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Launch Package",
|
"name": "Debug Package",
|
||||||
"type": "go",
|
"type": "go",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mode": "auto",
|
"mode": "debug",
|
||||||
"program": "${workspaceFolder}/cmd/gotosocial",
|
"program": "${workspaceFolder}/cmd/gotosocial",
|
||||||
"args": [
|
"args": [
|
||||||
"testrig", "start"
|
"testrig", "start"
|
||||||
],
|
],
|
||||||
|
"buildFlags": "-tags='netgo osusergo static_build kvformat debugenv'",
|
||||||
|
"env": {
|
||||||
|
"DEBUG": "1",
|
||||||
|
},
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue