Auto merge of #16965 - roife:use-lldb-for-cpp-ext, r=lnicola
fix: use lldb when debugging with C++ extension on MacOS See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941 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).
This commit is contained in:
commit
29a8e65bbe
@ -203,6 +203,10 @@ function getCCppDebugConfig(
|
|||||||
cwd: cargoWorkspace || runnable.args.workspaceRoot,
|
cwd: cargoWorkspace || runnable.args.workspaceRoot,
|
||||||
sourceFileMap,
|
sourceFileMap,
|
||||||
env,
|
env,
|
||||||
|
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
|
||||||
|
osx: {
|
||||||
|
MIMode: "lldb",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user