From 611a6a97b51b887bbfc84f057fda248b5c36dd92 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 25 Jan 2022 00:18:34 +0200 Subject: [PATCH] Update to work with latest VS Code go debugger --- 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 10df14ef3788a..b80b826fc0b5e 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 }