How To Enable WordPress Debug?

You can read the full explanation with more details about WordPress Debug on the official WordPress website, but here we will discuss a few quick steps to activate debug mode on your website.


Editing PHP files is a dangerous task and may cause your site to become unavailable with a single mistake. Please take a backup of your website before doing anything. Of course, if you do all the things mentioned in this article carefully, you will not have any problem with the topic of this article.

Step 1: Check if the Debug mode is already active on your website.

Navigate to Tools > Site Health and open the Info tab. Then open the WordPress Constants section and check if the WP_DEBUG and WP_DEBUG_LOG are enabled.

If both of these are enabled, you can skip to Step 4. If not, please continue reading.

Step 2: Install a file manager plugin to access your WordPress files.

We recommend the "File Manager" plugin.

Step 3: Edit the "wp-config.php" file to enable the Debug mode.

Open the file manager, and make sure that you are on the root directory by clicking on the html icon and then right-click on the wp-config.php file and select Code Editor.

Find the line (it's actually a comment) that says, "That's all, stop editing! Happy publishing" and add these two lines right before that:

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

The result should look like this:

Step 4: Downloading and sharing the generated error logs

After the debug mode is enabled on your server, you can find the generated error files at this path:


Here is the file that you can access with the file manager plugin:

You can right-click on this file, download it and share it with our support for investigating the errors.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.