Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2315c6b

Browse files
committed
Use correct format for setting environment variables when debugging with cpptools
1 parent56d77b9 commit2315c6b

File tree

1 file changed

+3
-1
lines changed
  • src/tools/rust-analyzer/editors/code/src

1 file changed

+3
-1
lines changed

‎src/tools/rust-analyzer/editors/code/src/debug.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ function getCCppDebugConfig(
194194
args:runnable.args.executableArgs,
195195
cwd:runnable.args.cwd||runnable.args.workspaceRoot||".",
196196
sourceFileMap,
197-
env,
197+
environment:Object.entries(env).map(entry=>{
198+
return{"name":entry[0],"value":entry[1]}
199+
}),
198200
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
199201
osx:{
200202
MIMode:"lldb",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp