Unnamed repository; edit this file 'description' to name the repository.
Use correct format for setting environment variables when debugging with cpptools
Jonas Rinke 2024-05-25
parent a55e8bf · commit aaa7e3a
-rw-r--r--editors/code/src/debug.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index 855e8b082a..3e4446e566 100644
--- a/editors/code/src/debug.ts
+++ b/editors/code/src/debug.ts
@@ -194,7 +194,9 @@ function getCCppDebugConfig(
args: runnable.args.executableArgs,
cwd: runnable.args.cwd || runnable.args.workspaceRoot || ".",
sourceFileMap,
- env,
+ environment: Object.entries(env).map(entry => {
+ return { "name": entry[0], "value": entry[1] }
+ }),
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
osx: {
MIMode: "lldb",