How to Activate Debug Mode in WordPress?

Article sections

    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. Open your wp-config.php file located in WordPress root directory
    2. Search for the following code
    define('WP_DEBUG', false);

    and make it

    define('WP_DEBUG', true);

    Applying the above change your WordPress displays all PHP errors, notices, and warnings. This will help easy to find out what causes a problem on site. When you are done revert back the change to stop showing those messages.

    If you are interest you can read inside WordPress about debugging here.

    Was this article helpful?
    YesNo
    in FAQ
    Was this article helpful?
    YesNo