Debugging

#debug#wp_debug

Query Monitor Plugin

The best tool for debugging your Wordpress site is the Free Query Monitor plugin. It will show you all PHP and javascript errors without bothering other visiting users.

If you rather don’t install an extra plugin you can always turn on WP_Debug for your website.

How to Enable or Disable WP_Debug

  1. Log in to your server using your hosting Control Panel account or FTP.
  2. Go to the public_html folder.
  3. Locate the wp-config.php file for your WordPress website.
  4. Edit the wp-config.php file.
  5. To enable WP_Debug, add the following code to the end of the file:
/**
* WordPress Debugging
*
* Set to "true" to enable wp_debug. Set to "false" to disable.
* Do not include quotes when setting to "true" or "false".
*/
define( 'WP_DEBUG', true );

6. To disable WP_Debug, change the last line to: define( ‘WP_DEBUG’, false );

7. Save the file.

More info about WordPress debugging can be found here.