What is debug mode?

WordPress has a number of settings you can use to debug the main application, themes, your own custom code, and more. In general, these settings are made for developers and should not be used on “live” sites. But you can also use them in some situations to help troubleshoot problems with third-party code, like plugins or themes.

To enable debugging mode in WordPress, follow these steps:

  • Connect to FTP or login to cPanel > File Manager
  • Open the wp-config.php file in your preferred text editor and find this line:
				
					define('WP_DEBUG', false);
				
			
  • To enable debugging mode, replace “false” with “true” in the above line. Then you will have this line :
				
					define('WP_DEBUG', true);
				
			
  • When this setting is enabled, WordPress displays all PHP errors, notices, and warnings. Save your changes and exit the text editor. Debugging mode is now active.
  • When you are done, disable debugging mode by changing the line back to this lines
				
					('WP_DEBUG', false);
				
			

$79