How to turn on 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.