title: How to disable debugger; command in JS?
body: <pre><code>window.alert = function(msg){console.log('foo' + msg);};
  alert("bar");
  </code></pre>
  
  <blockquote>
    <p>foobar</p>
  </blockquote>
  
  <p>screenshot of chrome console:</p>
  
  <p><a href="https://i.stack.imgur.com/pNivh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pNivh.png" alt="enter image description here"></a></p>
  
  <p>My problem is if I try disable <code>debugger;</code> command with this, do not work:</p>
  
  <pre><code>window.debugger = function(){console.log('faa');};
  debugger;
  </code></pre>
  
  <p>when I run <code>debugger;</code>, breakpoint stop my app.</p>