Special Deal! Free Website Migration with every plan, Cheap Domain Registration, and Friendly support.

Skip to content
Website Management

WordPress – Debug

Estimated reading: 2 minutes 54 views

Enabling Debug Mode

WordPress provides a debug tool to help debug an error on a website.

Enabling debug mode will display information on a live website which is visible to visitors. If you are debugging a live website, we recommend creating a debug log file instead of enabling debug mode.

Enable WordPress debug mode:

  1. Go to File Manager for the website, or use SSH to open the wp-config.php file
  2. Scroll down to the bottom of the file and add the following:-
define('WP_DEBUG',true);

This will enable WordPress debug mode, allowing you to see greater detail on any errors. It sets PHP errors to E_ALL which includes all errors, warnings, notices, and deprecated errors, not all of which are necessarily relevant to a broken site but should be taken in context.

To enable and view the WordPress debug log file:

This will enable the debug log file, and the default log file location will be public_html/wp-content/debug.log This will disable displaying the debug information on the front end. Edit the wp-config.php file and add the following lines to the end:-

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

You can read more about debugging WordPress here on the official website.

Share this Doc

WordPress – Debug

Or copy link

CONTENTS