Sometimes you can face issues due to the theme or plugin you have used. Some issues can be displayed through the console log but some may not so debugging can help you to find the issue. You can easily find the reasons for the issues through debug log file which can be created by adding code in the wp-config.php file in your WordPress setup.

To create debug log file you have to add the following given code in wp-config.php as mentioned above.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define( 'SCRIPT_DEBUG', true );
enable debug mode

After the addition of the above-given code, debug log file will be automatically created under wp-content of WordPress setup when the issue will be encountered during browsing the website.

An error will appear in the debug.log file as shown in the screenshot below.

enable debug mode

If you have any queries, please submit it to our Contact page.