title: Detecting javascript crashes client-side
body: <p>I wrote a rather large single page application, and I am about to deploy it to a restricted audience.
  I would like to be able to:</p>
  
  <ul>
  <li><p>Detect NASTY Javascript errors (e.g. accessing an object that doesn't exist, call functions that do not exist, etc.)</p></li>
  <li><p>When one happens, get as much info as possible( stacktrace, variable values, anything I can)</p></li>
  <li><p>Make a POST to the server, telling admins about the problem that just happened</p></li>
  </ul>
  
  <p>Has this been done before?
  How does this work/fight/doesn't work against code minification/obfuscation etc.?</p>
  
  <p>Before I reinvent yet another wheel, is there a full library that does all this already? </p>