Stepping through takes too much time

Sure thing:

count += 1;
if (count > 100) {
    debugger;
}

Only if the developer tools are currently visible will that debugger statement trigger the debugger.