diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rs index a55c07f528..e980e0a7cc 100644 --- a/crates/debugger_ui/src/debugger_panel.rs +++ b/crates/debugger_ui/src/debugger_panel.rs @@ -71,7 +71,7 @@ pub struct DebugPanel { pub(crate) session_picker_menu_handle: PopoverMenuHandle, fs: Arc, is_zoomed: bool, - _subscriptions: [Subscription; 1], + _subscriptions: [Subscription; 2], breakpoint_list: Entity, } @@ -95,6 +95,11 @@ impl DebugPanel { }, ); + let breakpoint_subscription = + cx.observe(&project.read(cx).breakpoint_store(), |_, _, cx| { + cx.notify(); + }); + Self { sessions_with_children: Default::default(), active_session: None, @@ -113,7 +118,7 @@ impl DebugPanel { thread_picker_menu_handle, session_picker_menu_handle, is_zoomed: false, - _subscriptions: [focus_subscription], + _subscriptions: [focus_subscription, breakpoint_subscription], debug_scenario_scheduled_last: true, } })