diff options
author | 2023-02-25 18:15:30 +0100 | |
---|---|---|
committer | 2023-02-25 17:15:30 +0000 | |
commit | 83be140f0b909058809745e664d71b4ddf85c615 (patch) | |
tree | b08002e52c6c1d11293cbbd870072497ba328ce5 | |
parent | [feature] Make OIDC admin groups configurable (#1555) (diff) | |
download | gotosocial-83be140f0b909058809745e664d71b4ddf85c615.tar.xz |
[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.
-rw-r--r-- | .vscode/launch.json | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index 906262d2f..714f11b63 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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}" } ] |