Last updated 18 November 2015. Created on 23 January 2014.
Edited by eldredpe, HongPong, krknth, abhishek-anand. Log in to edit this page.

JSerror module provides an easy way for logging and tracking JavaScript errors.

Tracking JavaScript errors can be painful. JavaScript code that works on your browser might not necessarily work on every user's browsers. This module records errors as they appear on any browser and sends the data back to the server.

JSerror sends a small JavaScript snippet to the browser prior to any other JavaScript files the page may have. This snippet collects any errors and sends the data back to the server, where those errors are logged in the database.


JSerror requires Browscap to extrack browser and platform information from the UserAgent string.


JSerror can be installed via the standard Drupal installation process.


In case anonymous user has the permission 'access site reports', anonymous page caching will be disabled. This might bring some performance overhead. Hence, it is advisable not to grant 'access site reports' permission to anonymous users.


  • Goto admin/config/development/jserror
  • Check "Subpress warnings in console" if the errors are to be suppressed from debugger console. Errors will no longer appear in a browser's JavaScript console. Useful on production websites.
  • Page request limit is the number of error requests per page a client can send to the server. Default is unlimited.
  • Client request limit is the number of overall requests a client can send to the server in one hour. Default is unlimited.
  • JavaScript log messages to keep, is the number of database entries to maintain. Entries beyond this number will be truncated on cron run.
  • Errors can be viewed at admin/reports/jserror

Looking for support? Visit the forums, or join #drupal-support in IRC.