code.gitea.io/gitea@v1.21.7/contrib/ide/vscode/launch.json (about)

     1  {
     2    "version": "0.2.0",
     3    "configurations": [
     4      {
     5        "name": "Launch",
     6        "type": "go",
     7        "request": "launch",
     8        "mode": "debug",
     9        "buildFlags": "",
    10        "program": "${workspaceRoot}/main.go",
    11        "env": {
    12          "GITEA_WORK_DIR": "${workspaceRoot}",
    13        },
    14        "args": ["web"],
    15        "showLog": true
    16      },
    17      {
    18        "name": "Launch (with SQLite3)",
    19        "type": "go",
    20        "request": "launch",
    21        "mode": "debug",
    22        "buildFlags": "-tags='sqlite sqlite_unlock_notify'",
    23        "program": "${workspaceRoot}/main.go",
    24        "env": {
    25          "GITEA_WORK_DIR": "${workspaceRoot}",
    26        },
    27        "args": ["web"],
    28        "showLog": true
    29      }
    30    ]
    31  }