Wordpress Debug Silently

define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', false); define('WP_DEBUG_LOG', true); define('SAVEQUERIES', true);
Add these lines to your wp-config.php to start logging silently errors on your site.

The log is placed in /wp-content/debug.log using PHP's built in error_log() function, which can be useful for instance when debugging AJAX events.

If you want your errors to be output as usual change define('WP_DEBUG_DISPLAY', false); to "true".

These lines will work nicely with debug-bar also.

NOTE: SAVEQUERIES will have a performance impact on your site, so make sure to turn this off when you aren’t debugging.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.