mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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:
parent
0f98569617
commit
c778164f64
Notes:
sideshowbarker
2024-07-18 20:27:26 +09:00
Author: https://github.com/FalseHonesty
Commit: c778164f64
Pull-request: https://github.com/SerenityOS/serenity/pull/6258
Reviewed-by: https://github.com/itamar8910 ✅
4 changed files with 14 additions and 10 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue