Debugging WordPress helps you quickly find and fix errors and warnings in your WordPress site code, plugins and themes.

By default, WordPress does not show warnings or errors. Enabling debugging is easy.

Steps to enable debugging in WordPress

  1. Open wp-config.php in your code editor or in cPanel File Manager
  2. Add the following line
    define( 'WP_DEBUG', true );
  3. Save your changes

Your WordPress site will now display any errors, notices and warnings from your plugins, themes and code.