Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If using jQuery, it is a few lines of code to add try/catch around the majority of your code entry points.

Go to https://github.com/getsentry/raven-js/blob/master/dist/1.0.8... and you will see code that wraps $.event.add(), $.fn.ready(), $.ajax(), window.setTimeout() and window.setInterval() (search _helper).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: