This module will write any JavaScript errors your users may encounter to your site's watchdog table, so you can review it later. It is very handy for debugging issues that your users may be experiencing.
The watchdog error message will report on the user, their browser, platform, what URL they were on, etc.
When a JavaScript error is encountered, it will be written to your watchdog table
as type log_js_errors. View log messages at admin/reports/dblog.
Note: By default, the module will only log js errors for logged-in (authenticated) users. If you wish to also log errors for anonymous users, add the following to your settings.php file:
$settings['log_js_errors_allow_anonymous'] = TRUE;
Make sure to tell your Backdrop site to NOT aggregate js files (see admin/config/development/performance) or your error messages might not help all that much.
This module works well with Watchdog Prune, which can be used to automatically remove certain entries from your watchdog after a set amount of time. Otherwise, your table may end up with lots of error messages.
- Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules
- Richard Peacock (original creator for Backdrop CMS)
- Seeking additional maintainers.
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.