Home / Companies / Rollbar / Blog / Post Details
Content Deep Dive

jQuery Error Instrumentation

Blog post from Rollbar

Post Details
Company
Date Published
Author
-
Word Count
234
Language
English
Hacker News Points
-
Summary

A new feature for the JavaScript notifier has been released to simplify error tracking when using jQuery 1.7 and above, through a separate JS plugin snippet placed just below the jQuery load. This snippet enhances error reporting by wrapping jQuery's ready(), on(), and off() functions in try/except blocks, enabling automatic error reporting to Rollbar with detailed stack traces, including line and column numbers. Additionally, it adds an ajaxError() handler to report AJAX errors like 404s and 500s, though users can opt out of this with a specific configuration. The source code is available on GitHub, and the feature aims to make debugging JavaScript errors more manageable, especially when combined with source maps. Users can start tracking errors by signing up for Rollbar or exploring further details in the provided documentation.