]> source.dussan.org Git - gitea.git/commitdiff
Update to work with latest VS Code go debugger (#18397)
authorLauris BH <lauris@nix.lv>
Tue, 25 Jan 2022 05:00:55 +0000 (07:00 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 05:00:55 +0000 (05:00 +0000)
contrib/ide/vscode/launch.json

index 10df14ef3788a486bb3a0f3cbc15323e0b6c13d2..b80b826fc0b5e54ddd6f1030b924a9095108abcb 100644 (file)
@@ -7,10 +7,10 @@
       "request": "launch",
       "mode": "debug",
       "buildFlags": "",
-      "port": 2345,
-      "host": "127.0.0.1",
       "program": "${workspaceRoot}/main.go",
-      "env": {},
+      "env": {
+        "GITEA_WORK_DIR": "${workspaceRoot}",
+      },
       "args": ["web"],
       "showLog": true
     },
       "request": "launch",
       "mode": "debug",
       "buildFlags": "-tags='sqlite sqlite_unlock_notify'",
-      "port": 2345,
-      "host": "127.0.0.1",
       "program": "${workspaceRoot}/main.go",
-      "env": {},
+      "env": {
+        "GITEA_WORK_DIR": "${workspaceRoot}",
+      },
       "args": ["web"],
       "showLog": true
     }