on master help sign in
Debugger: allow hot swapping even if module isn't paused.
98dd9feLaszlo Pandy
runtime/Debugger.js+7−8
@@ -223,15 +223,14 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
223 }
223 }
224
224
225 function getHotSwapState() {
225 function getHotSwapState() {
226+ var counter = eventCounter;
226− if (debugModule.getPaused()) {
227+ if (!debugModule.getPaused()) {
227− return {
228+ counter = getMaxSteps();
228− recordedEvents: debugModule.copyRecordedEvents(),
229− eventCounter: eventCounter
230− };
231− }
232− else {
233− return null;
234 }
229 }
230+ return {
231+ recordedEvents: debugModule.copyRecordedEvents(),
232+ eventCounter: counter
233+ };
235 }
234 }
236
235
237 function dispose() {
236 function dispose() {