Jump to stack pointer when stopped
commit91f2c60b3629469d918d368707a64a5c1dda73e1
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
dateSun 22 Aug 2021, 09:28 (5 years ago)
parent89ad54a
helix-term/src/application.rs+10
@@ -223,6 +223,16 @@ impl Application {
223223 status.push_str(" (all threads stopped)");
224224 }
225225
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+ }
226236 self.editor.set_status(status);
227237 self.render();
228238 }