Debug Mode (WP_DEBUG)
A WordPress setting that logs PHP warnings and errors to /wp-content/debug.log for diagnosis.
Reviewed by Ali Yasin Jatoi · Updated
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.
