Skip to content

Commit 29a8e65

Browse files
committed
Auto merge of #16965 - roife:use-lldb-for-cpp-ext, r=lnicola
fix: use lldb when debugging with C++ extension on MacOS See #16901 (comment) This PR resolves the issue of being unable to debug using the C++ extension on macOS. By using special configurations for the `MIMode` on macOS, it enables the C++ extension to connect to lldb when debugging (without affecting other platforms).
2 parents 4bf521d + 3521089 commit 29a8e65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: editors/code/src/debug.ts

+4
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ function getCCppDebugConfig(
203203
cwd: cargoWorkspace || runnable.args.workspaceRoot,
204204
sourceFileMap,
205205
env,
206+
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
207+
osx: {
208+
MIMode: "lldb",
209+
},
206210
};
207211
}
208212

0 commit comments

Comments
 (0)