on master help sign in
Jump to stack pointer when stopped
91f2c60Dmitry Sharshakov
helix-term/src/application.rs+10
@@ -223,6 +223,16 @@ impl Application {
223 status.push_str(" (all threads stopped)");
223 status.push_str(" (all threads stopped)");
224 }
224 }
225
225
226+ if let Some(helix_dap::StackFrame {
227+ source: Some(helix_dap::Source {
228+ path: Some(src),
229+ ..
230+ }),
231+ ..
232+ }) = &debugger.stack_pointer {
233+ let path = src.clone().into();
234+ self.editor.open(path, helix_view::editor::Action::Replace).unwrap();
235+ }
226 self.editor.set_status(status);
236 self.editor.set_status(status);
227 self.render();
237 self.render();
228 }
238 }