Olivier Girardot Olivier Girardot - 1 month ago 10
Javascript Question

Catch all javascript errors and send them to server

I wondered if anyone had experience in handling javascript errors globally and send them from the client browser to a server.

I think my point is quite clear, i want to know every exception, error, compilation error, ... that happens on the client side and send them to the server to report them.

I'm mainly using mootools and head.js (for the js side) and django for the server side (not that it matters...).

Thank you for your help.


Answer Source

I recently tested Sentry on production and it works fine (JS and other languages like PHP)

1- It's open source (You can install it on your own server) 2- You can use the free plan (100 reports / day)

Or install it on ur server : https://github.com/getsentry