Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai ba21e1209c fix(debugger): drop lldb-dap pseudo paths on Windows too
A referenced source's pseudo path such as /usr/lib/swift/libswiftCore.dylib`swift_willThrow
was kept on Windows, where a path with a root but no drive is not absolute, so
frames_drop_pseudo_paths_of_referenced_sources failed there. A rooted path now counts.
2026-11-30 19:48:23 +08:00
+2 -1
Переглянути файл
@@ -618,9 +618,10 @@ pub(crate) fn take_debug_server(arguments: &mut Value) -> IdeResult<Option<Debug
/// lldb-dap's ``/usr/lib/swift/libswiftCore.dylib`swift_willThrow`` for a frame without
/// debug info. Opening it would show an error tab; without a path the stop selects the
/// first frame with source instead. Non-file paths (`jdt://`, `<node_internals>`) stay.
/// Rooted rather than absolute: on Windows a `/usr/…` path has a root but no drive.
fn is_pseudo_path(source: Option<&Value>, path: &str) -> bool {
let reference = source.and_then(|s| s.get("sourceReference")).and_then(Value::as_i64).unwrap_or(0);
reference > 0 && Path::new(path).is_absolute() && !Path::new(path).exists()
reference > 0 && Path::new(path).has_root() && !Path::new(path).exists()
}
/// DAP stack frame → [`StackFrame`] (1-based → 0-based).