How to do Crash Reporting for Web Apps
Asked Answered
L

2

10

When I develop iPhone / iPad apps I always use a crash reporting system. My current favorite is Crashlytics - which works great.

For Android apps I've been using the rather more basic ACRA crash reporter.

Now that I'm building a webapp to be run on a client's own server, it seems a good idea to build in some kind of crash reporting system, probably linked off the window.onerror event.

Of course, I could build my own system. But does anyone know a good drop-in solution that sends and collates reports?

Incidentally, I'd prefer a completely client-side solution (i.e. just JavaScript) rather than anything that requires server support.

Leger answered 11/4, 2013 at 9:48 Comment(0)
G
8

Both Exceptional and Airbrake offer javascript implementations

Update

Exceptional was officially shut down in favor of Airbrake (Source)

Galumph answered 11/4, 2013 at 9:52 Comment(3)
Thanks Tim, I'll check those out. Looks like the AirBrake one is experimental so might not put that into production quite yet :-)Leger
Also checkout TrackJS. The tricky bit about crash reporting for JavaScript is that the errors themselves don't give you enough context to really understand what happened. TrackJS captures this extra context to give you recreation steps of the bug.Mile
Please do not edit my answer to add your own product. Instead, write your own answer and explain in detail why your product is better.Galumph
D
3

Whilst not currently supported by iOS, a number of browser platforms now support the W3C Reporting API which can be useful for reporting of crash and other analytics. For some examples see the MDN page on the Reporting API.

Descend answered 27/1, 2021 at 14:38 Comment(1)
interesting - thanks! I didn't know that existed until nowLeger

© 2022 - 2024 — McMap. All rights reserved.