jump to selected stack frame
This commit is contained in:
parent
cb31d20b46
commit
c6186ce600
1 changed files with 7 additions and 0 deletions
|
@ -506,6 +506,13 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
|
||||||
.iter()
|
.iter()
|
||||||
.position(|f| f.id == frame.id);
|
.position(|f| f.id == frame.id);
|
||||||
debugger.active_frame = pos;
|
debugger.active_frame = pos;
|
||||||
|
|
||||||
|
let frame = debugger.stack_frames[&thread_id]
|
||||||
|
.get(pos.unwrap_or(0))
|
||||||
|
.cloned();
|
||||||
|
if let Some(frame) = &frame {
|
||||||
|
jump_to_stack_frame(editor, frame);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
move |_editor, frame| {
|
move |_editor, frame| {
|
||||||
frame
|
frame
|
||||||
|
|
Loading…
Add table
Reference in a new issue