on master help sign in
Debugger: fix off by one error.
a423682Laszlo Pandy
runtime/Debugger.js+2−1
@@ -148,6 +148,7 @@ function debuggerInit(debugModule, runtime) {
148
148
149 function pauseProgram() {
149 function pauseProgram() {
150 debugModule.setPaused(true);
150 debugModule.setPaused(true);
151+ eventCounter = debugModule.getRecordedEventsLength();
151 }
152 }
152
153
153 function continueProgram() {
154 function continueProgram() {
@@ -183,7 +184,7 @@ function debuggerInit(debugModule, runtime) {
183 }
184 }
184
185
185 function getMaxSteps() {
186 function getMaxSteps() {
186− return debugModule.getRecordedEventsLength() - 1;
187+ return debugModule.getRecordedEventsLength();
187 }
188 }
188
189
189 function doPlayback(eventList) {
190 function doPlayback(eventList) {