Stepping through takes too much time

Hi, can someone recommend a way to test JavaScript / jQuery, in the Chrome developer tools when you have a setInterval and it needs to fire a lot times to count up to trigger something? Thanks

Sure thing:

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

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

That is super helpful! Thank You

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.