title: How to debug Google Docs Add-On
body: <p>I'm doing my first steps with Google Docs Add-On dev, and I just can't make the code debug.</p>
  
  <p>I set a breakpoint in the Script Editor window, but when I'm testing the add-on in Google Docs, it won't stop at the break point.</p>
  
  <p>This is the code I'm trying to break at:</p>
  
  <pre><code>$(function() {
      $('#checkDoc').click(performCheck);          
    });
  </code></pre>
  
  <p>I know the code is executed, but the debugger won't stop there.</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>It looks like I should have selected a function to run in the Script Editor, and then I could debug it.
  However, I still can't find the way to link the debugger to the UI, meaning - I want to click a button in the Add-On, and make the debugger stop.</p>
  
  <p>How can that be done?</p>