- Contributors: Andy Fragen
- Tags: debug, support
- Requires at least: 4.6
- Requires PHP: 5.4
- Tested up to: 5.1
- Stable tag: master
- Donate link: https://thefragens.com/github-updater-donate
- License: MIT
A debugging/support plugin for WordPress.
This plugin sets the following debug constants in
wp-config.php on plugin activation and removes them on plugin deactivation. Any errors will result in a PHP Exception being thrown. Debug constants per Debugging in WordPress.
define( 'WP_DEBUG_LOG', true ); define( 'SCRIPT_DEBUG', true ); define( 'SAVEQUERIES', true );
@ini_set( 'display_errors', 1 ); is set when the plugin is active.
WP_DEBUG is set to true when the plugin is first run, thereafter it can be turned off in the Settings.
The Settings page allows the user to set the following.
define( 'WP_DEBUG', true ); // Default on initial plugin installation. define( 'WP_DEBUG_DISPLAY', false ); // Default when not declared is true. define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); // WordPress 5.2 WSOD Override.
When the plugin is deactivated best efforts are made to re-add pre-existing constants to their former state. When the plugin is activated the default settings and any saved settings are restored.
This plugin uses the wp-cli/wp-config-transformer command for writing constants to
Debug Quick Look from Andrew Norcross is included with this plugin to assist in reading the debug.log file. If you already have this plugin installed you should delete it when WP Debugging is not active.
If you have a non-standard location for your
wp-config.php file you can use the filter
wp_debugging_config_path to return the file path for your installation.
PRs are welcome against the