Skip to main content
How to Enable WordPress Debug Mode

Enabling WordPress debug mode helps you get more information about different errors occurring on your WordPress site.

Updated over a week ago

WordPress will have the debug mode deactivated out of the box. That means, in cases where something is not working correctly or a blank screen is displayed, you don't have any information about what's happening.

WordPress allows you to enable the debug mode, which will provide valuable details about possible errors.

Enable WordPress debug mode with a plugin

  1. Go to WordPress Dashboard → Plugins → Add new

  2. Use the search field to search for WP debugging

  3. Install and Activate the WP Debugging plugin

    Install and active the WP Debugging plugin

  4. Go to Tools → WP Debugging

    Open WP debugging settings

  5. Ensure that the following options are checked:

    1. Set WP_DEBUG to true.

    2. Set WP_DEBUG_DISPLAY to false. The default is true.

    Set the options for activating the WordPress debug mode

  6. Click on the Save Changes button.

With the WordPress debug mode enabled, all the errors will be displayed (with additional information in Divi → Support Center → Logs.

Divi's Logs section

Pro tip: You can also access the debug.log file, which will contain all the errors, by using a File manager (either from your host or by using a File Manager plugin) and navigating to wp-content folder.

Enable WordPress debug mode without a plugin

  1. Using your host's File Manager app or installing the Advanced File Manager plugin, edit the wp-config.php file located in the root folder of the WordPress installation.

  2. In the wp-config.php file, find this line of code:

    define("WP_DEBUG", false);

  3. Replace that line with the following lines of code:

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

  4. Save the file.

WordPress will log any errors in the debug.log file, which will be created in the wp-content folder.

Additionally, all the information from the debug.log file will be displayed in Divi → Support Center → Logs section.

Divi Support Center Logs
Did this answer your question?