Skip to main content

Debugging your site

Turn on WordPress debug mode and view error logs.

Written by Daniel

When a site shows a blank screen or a plugin misbehaves, WordPress debug mode helps you find the cause. Console lets you turn it on safely.


Open the Debug page

Open your site, then under WordPress select Debug.


The Debug page


Turn on debug mode

  1. Tick WP_DEBUG to turn on debug mode. This enables the other two options.

  2. Tick WP_DEBUG_LOG to record errors to a log file instead of showing them on screen.

  3. Keep WP_DEBUG_DISPLAY off on a live site, so visitors never see raw error messages.

  4. Click Save.


View the log

Once debug logging is on, errors are captured in a log shown lower on the page. Review it to see what is going wrong.


Turn it back off

When you have finished, turn debug mode off again so the log does not keep growing.

Did this answer your question?