зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1504909 Part 1 - Include current point and endpoint in paused packets, r=lsmyth.
--HG-- extra : rebase_source : 102bbe18778f08b7b03fc7c829809757936241ea
This commit is contained in:
Родитель
4be7187910
Коммит
651069d959
|
@ -62,13 +62,20 @@ ReplayDebugger.prototype = {
|
|||
replayResumeBackward() { RecordReplayControl.resume(/* forward = */ false); },
|
||||
replayResumeForward() { RecordReplayControl.resume(/* forward = */ true); },
|
||||
replayTimeWarp: RecordReplayControl.timeWarp,
|
||||
replayRecordingPosition: RecordReplayControl.recordingPosition,
|
||||
|
||||
replayPause() {
|
||||
RecordReplayControl.pause();
|
||||
this._repaint();
|
||||
},
|
||||
|
||||
replayCurrentExecutionPoint() {
|
||||
return this._sendRequest({ type: "currentExecutionPoint" });
|
||||
},
|
||||
|
||||
replayRecordingEndpoint() {
|
||||
return this._sendRequest({ type: "recordingEndpoint" });
|
||||
},
|
||||
|
||||
addDebuggee() {},
|
||||
removeAllDebuggees() {},
|
||||
|
||||
|
|
|
@ -717,6 +717,14 @@ const gRequestHandlers = {
|
|||
getNewConsoleMessage(request) {
|
||||
return convertConsoleMessage(gConsoleMessages[gConsoleMessages.length - 1]);
|
||||
},
|
||||
|
||||
currentExecutionPoint(request) {
|
||||
return RecordReplayControl.currentExecutionPoint();
|
||||
},
|
||||
|
||||
recordingEndpoint(request) {
|
||||
return RecordReplayControl.recordingEndpoint();
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
|
|
|
@ -1484,11 +1484,8 @@ const ThreadActor = ActorClassWithSpec(threadSpec, {
|
|||
}
|
||||
|
||||
if (this.dbg.replaying) {
|
||||
const message = this.dbg.getNewConsoleMessage();
|
||||
packet.recordingProgress = this.dbg.replayRecordingPosition();
|
||||
if (message) {
|
||||
packet.executionPoint = message.executionPoint;
|
||||
}
|
||||
packet.executionPoint = this.dbg.replayCurrentExecutionPoint();
|
||||
packet.recordingEndpoint = this.dbg.replayRecordingEndpoint();
|
||||
}
|
||||
|
||||
if (poppedFrames) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче