From fc2f8b7b2051361ab96b9b1e16dc4ce0a105e776 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Tue, 4 Apr 2023 10:26:42 +0200 Subject: [PATCH] Make debugger config work when changing repos while debugging When changing repos while debugging, the current working directory changes, which means that a daemon lazygit doesn't find the debugger_config.yml file any more when you do an interactive rebase. Fix this by using an absolute path for the --use-config-file option. --- .vscode/launch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a39309429..6bddacc40 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,7 +7,7 @@ "request": "launch", "mode": "auto", "program": "main.go", - "args": ["--debug", "--use-config-file=.vscode/debugger_config.yml"], + "args": ["--debug", "--use-config-file=${workspaceFolder}/.vscode/debugger_config.yml"], "console": "integratedTerminal", "presentation": { "hidden": true @@ -19,7 +19,7 @@ "request": "launch", "mode": "auto", "program": "main.go", - "args": ["--logs", "--use-config-file=.vscode/debugger_config.yml"], + "args": ["--logs", "--use-config-file=${workspaceFolder}/.vscode/debugger_config.yml"], "console": "integratedTerminal", "presentation": { "hidden": true