title: JavaScript exception handling - displaying the line number
body: <p>When catching / handling exceptions in JavaScript, how can I determine what the call stack was when the exception occurred? (and also if possible what the line number was)</p>
  
  <pre><code>try
  {
      // etc...
  }
  catch (ex)
  {
      // At this point here I want to be able to print out a detailed exception 
      // message, complete with call stack, and if possible line numbers.
  }
  </code></pre>