How to enable debugging mode for WordPress

James Munford Blog, Other Leave a Comment

How to enable debugging mode for WordPress

It is as simple as following those steps:

  •  add the following code in wp-config.php above the comment /* That’s all, stop editing! Happy blogging. */

// Enable WP_DEBUG mode

define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file

define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings

define( 'WP_DEBUG_DISPLAY', false );

@ini_set( 'display_errors', 0 );

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)

define( 'SCRIPT_DEBUG', true );

  • check the file called debug.log inside your wp-content directory. You can use this error log to identify and potential plugin conflict or other probelms.

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.