4 ms·
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 exce
by dbloom 14y ago
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:
https://github.com/Cue/greplin-exception-catcher/blob/master/javascript/errorcatcher.js https://github.com/Cue/greplin-exception-catcher/blob/master...
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 :-(.