Tools and techniques for debugging WordPress.
Dump POST request body to the error log.
Copy this snippet to wp-config.php.
Follow error log: tail -f error_log
- For AJAX requests: https://github.com/szepeviktor/qm-ajax
- For REST requests: https://querymonitor.com/wordpress-debugging/rest-api-requests/
Open developer tools in your browser.
View page source in your browser.
Important
Check Web Console for JavaScript errors.
Dump triggered hooks (actions and filters) to a file.
Copy this MU plugin to wp-content/mu-plugins/.
Follow the log: tail -f wp-content/debug-hooks.log
Alternatively enable debugging in wp-config.
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
ini_set('display_errors', '0');Follow the log: tail -f wp-content/debug.log
- Plugin Identifier Search https://plugintests.com/search-ids
Follow PHP error log: tail -f error_log
Log requests and responses.
snitchpluginlog-http-requestsplugin
Cron can be web-based and CLI-based.
Log events and failures.
Check Action Scheduler logs.
Log queries before they are executed, see EXPLAIN statement.
Copy this snippet to wp-includes/class-wpdb.php.
Follow the log: tail -f wp-content/debug-queries.log
Log failed queries.
index-wp-mysql-for-speedplugin- Database Performance tuning
Log sent emails and sending failures.
Please consider supporting my work as these lists take years to compile.
Thank you!
query-monitorplugin- Test Mode plugin
airplane-modepluginwhats-runningpluginfrontend-debuggerplugin- https://themecheck.info/