From 7ca81b0a6b0ca8ca1f6cb7577ee26ffccd8acd56 Mon Sep 17 00:00:00 2001 From: Ashley <73482956+ascopes@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:42:52 +0100 Subject: [PATCH] Fix launch.json for debugging to use the VSCode workspace Not providing the workspace will result in the debugger failing to launch on some systems due to how the current working directory is resolved. In my case, I had to alter this to be able to attach delve via VSCode. --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index da82de49d..c93a3d95f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "go", "request": "launch", "mode": "auto", - "program": "./cmd/apigeecli/apigeecli.go", + "program": "${workspaceFolder}/cmd/apigeecli/apigeecli.go", // please change these args before debugging. do not checkin changes. "args": [ "apis",