debugger/lldb: Remove xcrun-based lldb-dap binary lookup (#27405)

Closes #ISSUE
/cc @RemcoSmitsDev 

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-03-25 00:21:09 +00:00
committed by GitHub
parent 03102b4d7e
commit 3205ae3884
-9
View File
@@ -37,15 +37,6 @@ impl DebugAdapter for LldbDebugAdapter {
) -> Result<DebugAdapterBinary> {
let lldb_dap_path = if let Some(user_installed_path) = user_installed_path {
user_installed_path.to_string_lossy().into()
} else if cfg!(target_os = "macos") {
util::command::new_smol_command("xcrun")
.args(&["-f", "lldb-dap"])
.output()
.await
.ok()
.and_then(|output| String::from_utf8(output.stdout).ok())
.map(|path| path.trim().to_string())
.ok_or(anyhow!("Failed to find lldb-dap in user's path"))?
} else {
delegate
.which(OsStr::new("lldb-dap"))