Turn On/Off Debug Mode

WordPress includes several settings that you can use to help debug the main application, themes, your own custom code, and more.

Generally, these settings are intended for use by developers and should not be used on “live” sites. However, you can also use them in certain scenarios to help troubleshoot issues you may be experiencing with third-party code, such as plugins or themes.

To enable debugging mode in WordPress, follow these steps:

  1. Connect to FTP or login to cPanel > File Manager 
  2. Open the wp-config.php file in your preferred text editor and find this line :
    define('WP_DEBUG', false);
  • To enable debugging mode, replace “false” with “true” in above line. Then you will have this line :
     define('WP_DEBUG', true);

    When this setting is enabled, WordPress displays all PHP errors, notices, and warnings.
    Save your changes and exit the text editor. Debugging mode is now active.

  • When you are done, disable debugging mode by change the line back to this :
    define('WP_DEBUG', false);