title: Chrome/Firefox set breakpoint on all javascript onclick events at once
body: <p>I am trying to debug a third-party HTML/Javascript page but I can't easily locate the script entry points to set breakpoints on them.</p>
  
  <p>I want the debugger to break on any element's onclick event handler. At the moment if the page is set up with something like</p>
  
  <pre><code>document.getElementById("foo").onclick = bar;
  </code></pre>
  
  <p>then in general it isn't easy to determine that foo and bar are connected.</p>
  
  <p>So, I want to break on all onclicks, wherever they may be.</p>
  
  <p>Can I do this in Chrome or Firefox?</p>