|
|
@ -314,7 +314,7 @@ impl Application {
|
|
|
|
if let Some(helix_dap::StackFrame {
|
|
|
|
if let Some(helix_dap::StackFrame {
|
|
|
|
source:
|
|
|
|
source:
|
|
|
|
Some(helix_dap::Source {
|
|
|
|
Some(helix_dap::Source {
|
|
|
|
path: Some(ref src),
|
|
|
|
path: Some(ref path),
|
|
|
|
..
|
|
|
|
..
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
line,
|
|
|
|
line,
|
|
|
@ -324,7 +324,7 @@ impl Application {
|
|
|
|
..
|
|
|
|
..
|
|
|
|
}) = debugger.stack_pointer
|
|
|
|
}) = debugger.stack_pointer
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let path = src.clone();
|
|
|
|
let path = path.clone();
|
|
|
|
self.editor
|
|
|
|
self.editor
|
|
|
|
.open(path, helix_view::editor::Action::Replace)
|
|
|
|
.open(path, helix_view::editor::Action::Replace)
|
|
|
|
.unwrap();
|
|
|
|
.unwrap();
|
|
|
@ -385,12 +385,10 @@ impl Application {
|
|
|
|
.set_status("Debugged application started".to_owned());
|
|
|
|
.set_status("Debugged application started".to_owned());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Event::Continued(_) => {
|
|
|
|
Event::Continued(_) => {
|
|
|
|
if let Some(debugger) = self.editor.debugger.as_mut() {
|
|
|
|
|
|
|
|
debugger.stopped_thread = None;
|
|
|
|
debugger.stopped_thread = None;
|
|
|
|
debugger.stack_pointer = None;
|
|
|
|
debugger.stack_pointer = None;
|
|
|
|
debugger.is_running = true;
|
|
|
|
debugger.is_running = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ev => {
|
|
|
|
ev => {
|
|
|
|
log::warn!("Unhandled event {:?}", ev);
|
|
|
|
log::warn!("Unhandled event {:?}", ev);
|
|
|
|
return; // return early to skip render
|
|
|
|
return; // return early to skip render
|
|
|
|