title: Debugging jquery exception with Firebug
body: <p>I am receiving a javascript error whose source line is in the jquery javascript library:</p>
  
  <p><em><code>uncaught exception: Syntax error, unrecognized expression: #</code></em></p>
  
  <p>I know what this error is: it usually happens if you try something like:</p>
  
  <pre><code>$('#');
  </code></pre>
  
  <p>However, I am struggling to debug it. It should be straightforward if I could just get a stack-trace. But Firebug refuses to either break-on-error or provide a stack trace. </p>
  
  <p>I have tried clicking the "Break on error" button which is at the top left of Firebug's Console pane. I have also selected "Show Stack Trace with Errors" under the Console menu. But the exception still gets outputted without breaking and without a stack trace. Is there some other option in Firebug I could use... any tricks for debugging this message?</p>