how to display javascript error while loading .js
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5680782/how-do-you-debug-javascript-applications">How do you debug Javascript applications?</a>  </p>
</blockquote>



<p>When there's a bug in my javascript .js file, no error is indicated, and the file just does not load.</p>

<p>Is there a fast way to debug something like this?</p>

<p>I have to temporarily delete half the file, test it, delete another half, test it, and so on until I isolate the problem.</p>

<p>How can I display the error when javascript loads the page?</p>
