about summary refs log tree commit diff
path: root/editors/code/src/debug.ts
diff options
context:
space:
mode:
authorroife <roifewu@gmail.com>2024-03-28 14:25:26 +0800
committerroife <roifewu@gmail.com>2024-03-28 14:38:23 +0800
commit3521089985951f684d33235dd0a5f99bbb3140f9 (patch)
tree0464237cdc598044351ace65f28eaad5f1d72135 /editors/code/src/debug.ts
parent4bf521df35d7b52b44bf371b8ebb65d983d056d4 (diff)
fix: use lldb when debugging with C++ extension
Diffstat (limited to 'editors/code/src/debug.ts')
-rw-r--r--editors/code/src/debug.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index cd7e7c35e99..bad1f48de85 100644
--- a/editors/code/src/debug.ts
+++ b/editors/code/src/debug.ts
@@ -203,6 +203,10 @@ function getCCppDebugConfig(
         cwd: cargoWorkspace || runnable.args.workspaceRoot,
         sourceFileMap,
         env,
+        // See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
+        osx: {
+            MIMode: "lldb",
+        },
     };
 }