mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-24 18:08:18 +03:00
83be140f0b
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.
20 lines
No EOL
379 B
JSON
20 lines
No EOL
379 B
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug Package",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceFolder}/cmd/gotosocial",
|
|
"args": [
|
|
"testrig", "start"
|
|
],
|
|
"buildFlags": "-tags='netgo osusergo static_build kvformat debugenv'",
|
|
"env": {
|
|
"DEBUG": "1",
|
|
},
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
]
|
|
} |