HackStudio: Properly support Debugger's new source root concept

HackStudio's debugger instance has its source root property updated
when switching projects, and breakpoints will properly canonicalize
their file paths as the Debugger now expects.
This commit is contained in:
FalseHonesty 2021-04-11 22:03:42 -04:00 committed by Andreas Kling
commit c778164f64
Notes: sideshowbarker 2024-07-18 20:27:26 +09:00
4 changed files with 14 additions and 10 deletions

View file

@ -198,7 +198,9 @@ void HackStudioWidget::open_project(const String& root_path)
m_project_tree_view->update();
}
if (Debugger::is_initialized()) {
Debugger::the().reset_breakpoints();
auto& debugger = Debugger::the();
debugger.reset_breakpoints();
debugger.set_source_root(m_project->root_path());
}
}