@@ -44,7 +44,8 @@ function debugModule(module, runtime) {
4444 var watchTracker = Elm.Native.Debug.make(runtime).watchTracker;
4545 var pauseTime = 0;
4646 var eventsUntilSnapshot = EVENTS_PER_SAVE;
47− runtime.eventCounter = runtime.eventCounter || 0;
47+ runtime.DebugStatus = runtime.DebugStatus || {};
48+ runtime.DebugStatus.eventCounter = runtime.DebugStatus.eventCounter || 0;
4849
4950 // runtime is the prototype of wrappedRuntime
5051 // so we can access all runtime properties too
@@ -111,7 +112,7 @@ function debugModule(module, runtime) {
111112 function recordEvent(id, v, timestep) {
112113 watchTracker.pushFrame();
113114 recordedEvents.push({ id:id, value:v, timestep:timestep });
114− runtime.eventCounter += 1;
115+ runtime.DebugStatus.eventCounter += 1;
115116 }
116117
117118 function clearAsyncCallbacks() {
@@ -124,7 +125,7 @@ function debugModule(module, runtime) {
124125
125126 function clearRecordedEvents() {
126127 recordedEvents = [];
127− runtime.eventCounter = 0;
128+ runtime.DebugStatus.eventCounter = 0;
128129 }
129130
130131 function getRecordedEventsLength() {
@@ -182,7 +183,7 @@ function debugModule(module, runtime) {
182183 snapshots = snapshots.slice(0, lastSnapshotPosition + 1);
183184 recordedEvents = recordedEvents.slice(0, position);
184185 tracePath.clearTracesAfter(position);
185− runtime.eventCounter = position;
186+ runtime.DebugStatus.eventCounter = position;
186187 executeCallbacks(asyncCallbacks, false);
187188 }
188189 tracePath.startRecording();
@@ -320,14 +321,14 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
320321 debugModule.setPaused();
321322 debugModule.loadRecordedEvents(hotSwapState.recordedEvents);
322323 var index = getMaxSteps();
323− runtime.eventCounter = 0;
324+ runtime.DebugStatus.eventCounter = 0;
324325 debugModule.tracePath.clearTraces();
325326
326327 // draw new trace path
327328 debugModule.tracePath.startRecording();
328329 while(currentEventIndex < index) {
329330 var nextEvent = debugModule.getRecordedEventAt(currentEventIndex);
330− runtime.eventCounter += 1;
331+ runtime.DebugStatus.eventCounter += 1;
331332 runtime.notify(nextEvent.id, nextEvent.value, nextEvent.timestep);
332333 debugModule.snapshotOnCheckpoint();
333334 currentEventIndex += 1;
@@ -412,14 +413,14 @@ function tracePathInit(runtime, signalGraphMain) {
412413 else {
413414 tracePositions[id] = [pos];
414415 }
415− if (tracePositions[id].length < runtime.eventCounter) {
416− var padCount = runtime.eventCounter - tracePositions[id].length;
416+ if (tracePositions[id].length < runtime.DebugStatus.eventCounter) {
417+ var padCount = runtime.DebugStatus.eventCounter - tracePositions[id].length;
417418 var lastTracePosition = tracePositions[id][tracePositions[id].length - 1];
418419 for (var i = padCount; i--;) {
419420 tracePositions[id].push(lastTracePosition)
420421 }
421422 }
422− assert(tracePositions[id].length === runtime.eventCounter,
423+ assert(tracePositions[id].length === runtime.DebugStatus.eventCounter,
423424 "We don't have a 1-1 mapping of trace positions to events");
424425 }
425426 }