on master help sign in
Merge pull request #713 from michaelbjames/debugger-restart-bugfix

bugfix: occasionaly restart would fail from an eventCounter mismatch

commitb276576b01fc4da61b4675b09a477fcda0ef64aa authorEvan Czaplicki <info@elm-lang.org> dateTue 29 Jul 2014, 14:22 (12 years ago) parent9e7ff4350e4500
1 file changed+1
runtime/Debugger.js+1
runtime/Debugger.js+1
@@ -226,6 +226,7 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
226226 }
227227
228228 function restartProgram() {
229+ pauseProgram();
229230 resetProgram(0);
230231 debugModule.watchTracker.clear();
231232 debugModule.tracePath.clearTraces();