Added propper pause messages in gui for pause & breakpoint
This commit is contained in:
parent
97de960df7
commit
438e474cf7
2 changed files with 19 additions and 5 deletions
|
|
@ -92,14 +92,19 @@ export class MI2 extends EventEmitter implements IBackend {
|
|||
if (record.asyncClass == "running")
|
||||
this.emit("running", parsed);
|
||||
else if (record.asyncClass == "stopped") {
|
||||
if (parsed.record("reason") == "breakpoint-hit")
|
||||
let reason = parsed.record("reason");
|
||||
if (reason == "breakpoint-hit")
|
||||
this.emit("breakpoint", parsed);
|
||||
else if (parsed.record("reason") == "end-stepping-range")
|
||||
else if (reason == "end-stepping-range")
|
||||
this.emit("step-end", parsed);
|
||||
else if (parsed.record("reason") == "function-finished")
|
||||
else if (reason == "function-finished")
|
||||
this.emit("step-out-end", parsed);
|
||||
else
|
||||
else if (reason == "signal-received")
|
||||
this.emit("signal-stop", parsed);
|
||||
else {
|
||||
this.log("console", "Not implemented stop reason (assuming exception): " + reason);
|
||||
this.emit("stopped", parsed);
|
||||
}
|
||||
} else
|
||||
this.log("log", JSON.stringify(parsed));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue