I'm still not sure how it catches all unhandled exceptions. I looked at the source code (<a href="http://rescuejs.com/rescue.beta.js" rel="nofollow">http://rescuejs.com/rescue.beta.js</a>) and it only seems to wrap setTimeout, setInterval, jQuery.fn.ready, and jQuery.event.add. What about exceptions in other functions? Or does capturing the e.backtrace have something to do with it?<p>Would love to know (and if this works out of the box, what's to prevent cross-domain scripts from communicating with each other by raising exceptions?)
There's also Sentry (<a href="https://github.com/getsentry/sentry" rel="nofollow">https://github.com/getsentry/sentry</a>) which works on the server side too (with python, node.js, php, ruby and java)
It should be possible to get exceptions raised in event listeners too (including stacktraces) if you wrap the DOM prototypes. I do something similar in the exception catcher we use at Cue:
<a href="https://github.com/Cue/greplin-exception-catcher/blob/master/javascript/errorcatcher.js" rel="nofollow">https://github.com/Cue/greplin-exception-catcher/blob/master...</a><p>Not only does it log stacktraces, but it also breaks Firebug. And you'll find out that most of your exceptions end up coming from JS injected by shady toolbars and malware on people's systems :-(.
Also check out <a href="http://ratchet.io" rel="nofollow">http://ratchet.io</a> which also supports debug-style logging so you can, for example, wrap console.log() to debug client-side issues in production.
We rumbled as well.
Not as practical. We made a Star Trek game.
<a href="http://the-glimmer-twins.r12.railsrumble.com/" rel="nofollow">http://the-glimmer-twins.r12.railsrumble.com/</a><p>Good luck!
That's a neat use of JavaScript Source Maps. Unfortunately, it looks like you would effectively need to make your non-minified codebase public. Any plans for ways to get around that?
Looks very much like <a href="http://errorception.com" rel="nofollow">http://errorception.com</a> to me. Definitely a dense market now, a comparison page would help.
<a href="http://www.errorify.com/" rel="nofollow">http://www.errorify.com/</a> is also using sourcemaps (and you don't have to make non-minified code public), with no dependencies (like jquery, ...), totally crossbrowser and provides optional code rewriting. And has unified dashboard <a href="http://www.errorify.com/features" rel="nofollow">http://www.errorify.com/features</a><p>@glesperance
10x
When I tried to do this myself, I ran into a problem with lots of errors happening for reasons exterior to my app - People have strange plugins, that may fail; if the user navigates away from a page, before all javascript has loaded, it might cause unpredictable errors. You probably need to filter these out, to be able to use it for anything.