How To Enable Debug Log In WordPress

While writing or execution of the code every developers made mistake. It can be silly.

Like forgetting the Semi Colon(;), Curly braces({}), etc.

Some times when we execute the code we are unable to see or list the error where we have made mistake.

So to see that log or error message we need to Enable Debug mode.

There are list of commands which we can use to display error log using wp-config.php file.

error_reporting(E_ALL & ~E_NOTICE);
define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

First of all you need to check in your wp-config file. If any of the option from above code has been already added in your code but it stated as “False”

then you need to make it “True”.

Thanks

Submit a Comment

Your email address will not be published.

Subscribe

Select Categories