Change summary
crates/debugger_ui/src/debugger_ui.rs | 11 +++++++++++
1 file changed, 11 insertions(+)
Detailed changes
@@ -119,6 +119,17 @@ pub fn init(cx: &mut App) {
}
}
})
+ .register_action(|workspace, _: &StepOut, _, cx| {
+ if let Some(debug_panel) = workspace.panel::<DebugPanel>(cx) {
+ if let Some(active_item) = debug_panel.read_with(cx, |panel, cx| {
+ panel
+ .active_session()
+ .map(|session| session.read(cx).running_state().clone())
+ }) {
+ active_item.update(cx, |item, cx| item.step_out(cx))
+ }
+ }
+ })
.register_action(|workspace, _: &StepBack, _, cx| {
if let Some(debug_panel) = workspace.panel::<DebugPanel>(cx) {
if let Some(active_item) = debug_panel