Firefox - Disable 'debugger' keywords
<p>How do I tell Firefox not to stop if it sees a <code>debugger</code> keyword?</p>

<p>I need to avoid a continuous <code>debugger</code> loop in case the website uses debugging protection generating <code>debugger</code> statements on the fly using timers.</p>

<p>Here is an example. In case you open the debugging console the script will throw tons of debugger statements, which will block you from normal debugging work.</p>

<p>An example website is <a href="http://www.avito.ru" rel="noreferrer">http://www.avito.ru</a> - the biggest classified site in Russia. Open it and then open the debugger console and it will be immediately stop at the <code>debugger</code> keyword in generated script.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>(function(x/**/) {
    (function(f){
        (function a(){
            try {
                function b(i) {
                    if(
                        (''+(i/i)).length !== 1 ||
                        i % 20 === 0
                    ) {
                        (function(){}).constructor('debugger')();
                    } else {
                        debugger;
                    }

                    b(++i);
                }

                b(0);
            } catch(e) {
                f.setTimeout(a, x)
            }
        })()
    })(document.body.appendChild(document.createElement('frame')).contentWindow);
});</code></pre>
</div>
</div>
</p>