Wordpress

How to Enable Debug Mode in WordPress

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. Manual Method to Enable Debug Mode in WordPress 1 Access your WordPress files using an FTP

How to Enable Debug Mode in WordPress

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.

Manual Method to Enable Debug Mode in WordPress

1Access your WordPress files using an FTP client or your hosting control panel’s file manager.
2Locate the wp-config.php file, usually in the root directory.
3Open wp-config.php in a text editor.
4Find the line define( 'WP_DEBUG', false );.
5Change false to true: define( 'WP_DEBUG', true );
6(Optional) Define additional constants for further debugging.
// Enable debug logging
define( 'WP_DEBUG_LOG', true );
// Enable displaying of errors and warnings
define( 'WP_DEBUG_DISPLAY', true );
// Enable logging of all queries and their execution time
define( 'SAVEQUERIES', true );
7Save the wp-config.php file.

Enable / Disable debug mode using WordPress plugins

1Go to Plugins > Add New in your WordPress dashboard.
2Search for “debug” and install/activate a plugin like “WP Debugging” or “Query Monitor“.
3Follow the plugin’s instructions to enable debug mode.

Important Tips Before Enabling Debug Mode

  • Don’t forget to backup website
  • Enabling debug mode can slow down your website. It’s recommended to disable it after the troubleshooting.

More to read

How to handle critical errors in WordPress

Wordpress

How to handle critical errors in WordPress

As part of our SEO profession, we need to work with WordPress-based websites regularly. In some situations, we may encounter a critical error message while accessing the...

Read more