From 9628a76ce6f4fea8508f79747d78007907e3ea76 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 25 Jan 2022 07:00:55 +0200 Subject: [PATCH] Update to work with latest VS Code go debugger (#18397) --- contrib/ide/vscode/launch.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/ide/vscode/launch.json b/contrib/ide/vscode/launch.json index 10df14ef37..b80b826fc0 100644 --- a/contrib/ide/vscode/launch.json +++ b/contrib/ide/vscode/launch.json @@ -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 }, @@ -20,10 +20,10 @@ "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 }