How to turn on/off Debugging in WordPress

WordPress includes several settings that you can use to help debug your site. These options are usually meant for developers, and you can turn it on by editing the wp-config.php file of your WordPress instance.

You need to login to your cPanel File Manager or FTP and edit the wp-config.php file, which should be available in WordPress instance's root directly.

In wp-config.php file, file the following line:

define('WP_DEBUG', false);

And replace it with the following code:

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

Save your wp-config.php file and you should be able to see your debugging logs in wp-content/debug.log anytime an error appears.


How to turn Off Debugging in WordPress:

It is just a difference of "true/false". You will need to do the reverse of the above steps. In  wp-config.php  file, find one or both of the following lines:

define('WP_DEBUG', true); 

define('WP_DEBUG_LOG', true);

Replace it with:

define('WP_DEBUG', false);

Save your wp-config.php file.

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

Still need help? Contact Us Contact Us