Please let us know how this article can be improved.
Choose all that apply.*
Report a bad link
Out of date (instructions or screenshots)
Missing detail
Other
Enable WordPress debugging
Learn what debugging is and how to activate it to find WordPress errors.
Jun 20, 2024
Article ID: SLN29716
Debugging is used for troubleshooting WordPress errors. Sometimes plugins and themes present errors after updating to the latest version and they may also conflict with WordPress core updates. When this happens, enabling debugging to display errors on your website or in the debugging log file will help troubleshoot errors. When enabled, debugging will show PHP errors, warnings and notices. Automatically enabling debugging in the WordPress Toolkit is the same process performed manually in the wp-config file.
Important: It is not recommended to enable debugging on a live website. The best approach is to enable debugging on a staging website to troubleshoot errors.
Click the WordPress Toolkit link on the left toolbar.
In the Dashboard section for the selected website, toggle on Debugging.
Click the debugging Options icon.
When debugging is enabled, three settings are automatically turned on: WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY.
To turn off WP_DEBUG_LOG and WP_DEBUG_DISPLAY, deselect the items. Note: Deselecting both will also deselect WP_DEBUG. It is recommended to save errors to the debug.log file.
Click the OK button.
Note: You can also enable debug to test changes made to CSS and JavaScript files and save database queries to an array for analysis. Learn more.