mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-10 06:54:16 +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
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",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Package",
|
||||
"name": "Debug Package",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "auto",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}/cmd/gotosocial",
|
||||
"args": [
|
||||
"testrig", "start"
|
||||
],
|
||||
"buildFlags": "-tags='netgo osusergo static_build kvformat debugenv'",
|
||||
"env": {
|
||||
"DEBUG": "1",
|
||||
},
|
||||
"cwd": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue