Distinguish between Pause and Step Into

This commit is contained in:
Tad Hardesty 2020-09-22 19:59:45 -07:00
parent cef54e1c32
commit b4594c2f4b
2 changed files with 10 additions and 0 deletions

View file

@ -487,6 +487,14 @@ handle_extools! {
});
}
}
BreakpointHitReason::Pause => {
self.seq.issue_event(dap_types::StoppedEvent {
reason: dap_types::StoppedEvent::REASON_PAUSE.to_owned(),
description: Some("Paused by request".to_owned()),
threadId: Some(0),
.. Default::default()
})
}
_ => {
debug_output!(in self.seq, "[extools] {}#{}@{} hit", hit.proc, hit.override_id, hit.offset);
self.seq.issue_event(dap_types::StoppedEvent {

View file

@ -424,6 +424,8 @@ pub enum BreakpointHitReason {
BreakpointOpcode,
#[serde(rename = "step")]
Step,
#[serde(rename = "pause")]
Pause,
#[serde(other)]
Unknown,
}