Debug mode is used to identify and troubleshoot critical errors on a WordPress website. By default, debug mode is disabled because it can slow down the website. We can enable or disable debug mode manually or by using plugins.
1 | Access your WordPress files using an FTP client or your hosting control panel’s file manager. |
2 | Locate the wp-config.php file, usually in the root directory. |
3 | Open wp-config.php in a text editor. |
4 | Find the line define( 'WP_DEBUG', false ); . |
5 | Change false to true : define( 'WP_DEBUG', true ); |
6 | (Optional) Define additional constants for further debugging.// Enable debug logging |
7 | Save the wp-config.php file. |
1 | Go to Plugins > Add New in your WordPress dashboard. |
2 | Search for “debug” and install/activate a plugin like “WP Debugging” or “Query Monitor“. |
3 | Follow the plugin’s instructions to enable debug mode. |
Meet the author
Syam K.S. is a digital marketing professional and trainer in Kerala. With over 18 years of experience, he is an SEO expert in Kerala. Syam serves as the lead trainer for our Digital Marketing course and online SEO course.