mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Use correct format for setting environment variables when debugging with cpptools
This commit is contained in:
parent
a55e8bf09c
commit
aaa7e3a3c4
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,9 @@ function getCCppDebugConfig(
|
||||||
args: runnable.args.executableArgs,
|
args: runnable.args.executableArgs,
|
||||||
cwd: runnable.args.cwd || runnable.args.workspaceRoot || ".",
|
cwd: runnable.args.cwd || runnable.args.workspaceRoot || ".",
|
||||||
sourceFileMap,
|
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
|
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
|
||||||
osx: {
|
osx: {
|
||||||
MIMode: "lldb",
|
MIMode: "lldb",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue