@@ -177,9 +177,9 @@ function debugModule(module, runtime) {
177177 if (position > 0) {
178178 // If we're not unpausing at the head, then we need to dump the
179179 // events that are ahead of where we're continuing.
180− var lastSnapshotPosition = Math.ceil(position / EVENTS_PER_SAVE);
180+ var lastSnapshotPosition = Math.floor(position / EVENTS_PER_SAVE);
181181 eventsUntilSnapshot = EVENTS_PER_SAVE - (position % EVENTS_PER_SAVE);
182− snapshots = snapshots.slice(0, lastSnapshotPosition);
182+ snapshots = snapshots.slice(0, lastSnapshotPosition + 1);
183183 recordedEvents = recordedEvents.slice(0, position);
184184 tracePath.clearTracesAfter(position);
185185 eventCounter = position;