Debug WordPress

Copy and paste the following into your wp-config.php file, above the “happy Blogging” comment.

@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

All errors or notices will now be saved into a debug file which you can find at:



I’ll be creating more content about starting and running WordPress plugin businesses. You can follow the journey by joining my mail list.

Leave a Comment