How To Enable and Disable Debug Mode in WordPress

In WordPress, Debug mode (For developers), allows you to get information when something goes wrong, this helps us to find and resolve issues.

By default, this option is disabled thus enabling it helps to detect and troubleshoot issues you may be experiencing.


Steps on How To Enable Debug Mode in WordPress

Step 1: Log in to your cPanel.
Step 2: Go to your root directory (public_html).
Step 3: Locate and edit the Wp-config.php or wp-config.php file.
Step 4: Search for the debug lines (often found on the ending part in wp-config.php file)  and change the values from false to true or Copy and replace with the below code.

Code:

define('WP_DEBUG', true);



Steps on How To Enable Debug Mode in WordPress

From the steps given above, just change the values to false.

Code:

define('WP_DEBUG', false);