on master help sign in
jump to selected stack frame
c6186ceDmitry Sharshakov
helix-term/src/commands/dap.rs+7
@@ -506,6 +506,13 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
506 .iter()
506 .iter()
507 .position(|f| f.id == frame.id);
507 .position(|f| f.id == frame.id);
508 debugger.active_frame = pos;
508 debugger.active_frame = pos;
509+
510+ let frame = debugger.stack_frames[&thread_id]
511+ .get(pos.unwrap_or(0))
512+ .cloned();
513+ if let Some(frame) = &frame {
514+ jump_to_stack_frame(editor, frame);
515+ }
509 },
516 },
510 move |_editor, frame| {
517 move |_editor, frame| {
511 frame
518 frame