From 19b6892c8daa6c70701c884c864b4192093ca874 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 27 May 2025 11:32:48 -0400 Subject: [PATCH] debugger: Don't try to open `` paths (#31524) The JS DAP returns these, and they don't point to anything real on the filesystem. Release Notes: - N/A --- crates/debugger_ui/src/session/running/stack_frame_list.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/debugger_ui/src/session/running/stack_frame_list.rs b/crates/debugger_ui/src/session/running/stack_frame_list.rs index 5f524828a8c1ac82e4d98ec3c5bb477a3a9470a2..2120cbca539a147c7178383b4f6e1d58b78068d8 100644 --- a/crates/debugger_ui/src/session/running/stack_frame_list.rs +++ b/crates/debugger_ui/src/session/running/stack_frame_list.rs @@ -250,6 +250,9 @@ impl StackFrameList { let Some(abs_path) = Self::abs_path_from_stack_frame(&stack_frame) else { return Task::ready(Err(anyhow!("Project path not found"))); }; + if abs_path.starts_with("") { + return Task::ready(Ok(())); + } let row = stack_frame.line.saturating_sub(1) as u32; cx.emit(StackFrameListEvent::SelectedStackFrameChanged( stack_frame_id,