mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-25 13:16:40 +00: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
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