WordPress glossary

Debug Mode (WP_DEBUG)

A WordPress setting that logs PHP warnings and errors to /wp-content/debug.log for diagnosis.

Last updated ยท Reviewed by Ali Hassan

WP_DEBUG is set in wp-config.php. Combine with WP_DEBUG_LOG true and WP_DEBUG_DISPLAY false on production so errors are logged but never shown to visitors. Read the log file when diagnosing any unexplained WordPress issue.

Need this fixed, not just defined?

We have shipped hundreds of fixes for exactly this kind of issue. Book a 20 minute call and we will tell you straight whether it is a quick fix or a bigger root cause.

Call Book a call