WordPress: How to Enable or Disable WP_Debug
How to Enable or Disable WP_Debug Using File Manager
- Log in to your Control Panel.
- Go to File Manager.
- Locate the wp-config.php file for your WordPress website.
- Click
Edit for the wp-config.php file.
- 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 );
- To disable WP_Debug, change the last line to:
define( 'WP_DEBUG', false );
- Click Save.
Are there more debugging tools?
WP_Debug as designed to work with additional tools, which are enabled the same way as WP_Debug.
define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
Learn more about WP_Debug_Log and WP_Debug_Display by visiting WordPress.org.
Important: WP_Debug_Log will store records of your error messages on your hosting account. These records take up disk space, so we recommend only having it active while you are troubleshooting your website. If you leave it on for an extended period of time, you could run the risk of eventually violating our normal usage policy.
Want to learn more about WordPress?
You can always check out WordPress.org and browse their codex or online help forums.