Enable WP Debug

December 17, 2020

WP_DEBUG is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout WordPress. It is assumed to be false by default and is usually set to true in the wp-config.php file on development copies of WordPress.

For information on other debugging tools built into WordPress see  Debugging in WordPress

Usage

Enable debugging

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

Disable debugging

define( 'WP_DEBUG', false );
Did you find this article helpful?
0 out of 0 found this helpful
Still have questions? Open a Support Ticket

Related Documentation

Arrow-up