That's a general javascript problem though as soon as you involve any third party library.
Something funky going wrong when jQuery's involved? Good luck stepping through that.
Something funky going wrong when jQuery's involved? Good luck stepping through that.
I put all libraries into a common bundle, which I blackbox in the browser debugger. This way only frames from my own code show up in the stack by default, and the debugger won't step into library code.
This also makes stack traces very easy to visually parse, as you can pretty much ignore all the ones ending in "... (common.js)".
Which is doubly shit.
Let us know if there's anything we can be doing better :)