@@ -178,7 +178,7 @@ function debugModule(module, runtime) {
178178}
179179
180180function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
181− var eventCounter = 0;
181+ var currentEventIndex = 0;
182182
183183 function resetProgram() {
184184 debugModule.clearAsyncCallbacks();
@@ -197,23 +197,23 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
197197
198198 function pauseProgram() {
199199 debugModule.setPaused();
200− eventCounter = debugModule.getRecordedEventsLength();
200+ currentEventIndex = debugModule.getRecordedEventsLength();
201201 }
202202
203203 function continueProgram() {
204204 if (debugModule.getPaused())
205205 {
206− if(eventCounter === 0) {
206+ if(currentEventIndex === 0) {
207207 restartProgram();
208208 return;
209209 }
210210 resetProgram();
211− var continueIndex = eventCounter;
212− eventCounter = 0;
211+ var continueIndex = currentEventIndex;
212+ currentEventIndex = 0;
213213 debugModule.tracePath.clearTraces();
214214 debugModule.tracePath.startRecording();
215215 stepTo(continueIndex);
216− debugModule.setContinue(eventCounter);
216+ debugModule.setContinue(currentEventIndex);
217217 }
218218 }
219219
@@ -227,19 +227,19 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
227227 throw "Index out of bounds: " + index;
228228 }
229229
230− if (index < eventCounter) {
230+ if (index < currentEventIndex) {
231231 resetProgram();
232− eventCounter = 0;
232+ currentEventIndex = 0;
233233 }
234234
235− assert(index >= eventCounter, "index must be bad");
236− while (eventCounter < index) {
237− var nextEvent = debugModule.getRecordedEventAt(eventCounter);
235+ assert(index >= currentEventIndex, "index must be bad");
236+ while (currentEventIndex < index) {
237+ var nextEvent = debugModule.getRecordedEventAt(currentEventIndex);
238238 runtime.notify(nextEvent.id, nextEvent.value, nextEvent.timestep);
239239
240− eventCounter += 1;
240+ currentEventIndex += 1;
241241 }
242− assert(eventCounter == index, "while loop didn't work");
242+ assert(currentEventIndex == index, "while loop didn't work");
243243 }
244244
245245 function getMaxSteps() {
@@ -265,13 +265,13 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
265265 }
266266
267267 function getHotSwapState() {
268− var continueIndex = eventCounter;
268+ var continueIndex = currentEventIndex;
269269 if (!debugModule.getPaused()) {
270270 continueIndex = getMaxSteps();
271271 }
272272 return {
273273 recordedEvents: debugModule.copyRecordedEvents(),
274− eventCounter: continueIndex
274+ currentEventIndex: continueIndex
275275 };
276276 }
277277
@@ -296,11 +296,11 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
296296 stepTo(getMaxSteps());
297297 debugModule.tracePath.stopRecording();
298298
299− stepTo(hotSwapState.eventCounter);
299+ stepTo(hotSwapState.currentEventIndex);
300300 if (paused) {
301301 debugModule.setPaused();
302302 } else {
303− debugModule.setContinue(hotSwapState.eventCounter);
303+ debugModule.setContinue(hotSwapState.currentEventIndex);
304304 }
305305 }
306306
@@ -317,7 +317,7 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
317317 dispose: dispose,
318318 allNodes: debugModule.signalGraphNodes,
319319 watchTracker: debugModule.watchTracker,
320− mainSignalNode: debugModule.debuggedModule.main
320+ signalGraphMain: debugModule.debuggedModule.main
321321 };
322322
323323 return elmDebugger;
@@ -336,10 +336,10 @@ function Point(x, y) {
336336 }
337337}
338338
339−function tracePathInit(runtime, mainSignalNode) {
339+function tracePathInit(runtime, signalGraphMain) {
340340 var List = Elm.List.make(runtime);
341341 var Signal = Elm.Signal.make(runtime);
342− var tracePathNode = A2(Signal.lift, graphicsUpdate, mainSignalNode);
342+ var tracePathNode = A2(Signal.lift, graphicsUpdate, signalGraphMain);
343343 var tracePathCanvas = createCanvas();
344344 var tracePositions = {};
345345 var recordingTraces = true;