Skip to content

Commit

Permalink
Use correct format for setting environment variables when debugging w…
Browse files Browse the repository at this point in the history
…ith cpptools
  • Loading branch information
0xJonas committed May 25, 2024
1 parent 56d77b9 commit 2315c6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/rust-analyzer/editors/code/src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2315c6b

Please sign in to comment.