TraceKit icon indicating copy to clipboard operation
TraceKit copied to clipboard

Setting collectWindowErrors to false stops handled errors from reporting

Open nazjunaid opened this issue 12 years ago • 4 comments

I have an example here http://jsfiddle.net/tGZGW/

It's based of the current master code.

nazjunaid avatar Apr 05 '13 08:04 nazjunaid

It's new, but I recommend you try using this: https://github.com/devinrhode2/shield.js/blob/master/src/shield.js

Just define a onuncaughtException function that takes in one parameter, e, the exception from catch. Wrap your program code with the shield function as described in the inline docs there, and you should be good. You can then JSON.serialize the object, or pass it to an analytics library and just have it fill into your analytics dashboard

Please let me know how that goes for you.

devinrhode2 avatar Apr 05 '13 16:04 devinrhode2

I believe it's fixed in the issue-41 branch (in 183ecc26). Could you take a look and let me know? I've also updated the jsfiddle to quickly test the change - See http://jsfiddle.net/tGZGW/1/.

Thanks

occ avatar Apr 15 '13 17:04 occ

Just verified. It's good. Pretty sure there should be no merge conflicts also ;)

devinrhode2 avatar Oct 16 '13 12:10 devinrhode2

@devinrhode2,occ I'm helping maintain TraceKit upstream.. If you want to recreate this issue/pull request for issue-41 in the master (https://github.com/csnover/TraceKit) That would be greatly appreciated.

niemyjski avatar May 13 '15 22:05 niemyjski