@@ -506,6 +506,13 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
507 .position(|f| f.id == frame.id);
507 .position(|f| f.id == frame.id);
508 debugger.active_frame = pos;
508 debugger.active_frame = pos;
510+ let frame = debugger.stack_frames[&thread_id]
511+ .get(pos.unwrap_or(0))
513+ if let Some(frame) = &frame {
514+ jump_to_stack_frame(editor, frame);
510 move |_editor, frame| {
517 move |_editor, frame| {