WP_DEBUG

WordPress Debug Log: How to Turn It On Safely and Read Your Error Log

By Jonathan Wofford / Oct 26, 2026

The short answer To turn on the WordPress debug log, add WP_DEBUG and WP_DEBUG_LOG to your wp-config.php file, and point the log at a private folder outside your website’s public files. Set WP_DEBUG_DISPLAY to false so visitors never see the errors. Then repeat whatever breaks, download the log, and read the newest lines. An AI…