← Blog ReDock Web September 11, 2026 · Pial

The WordPress debug log on a client's live site: switch it on, read it, and switch it off again

ReDock Web switches WordPress's debug log on for one site behind a confirm, keeps errors off the pages visitors see, lets you read and search the log in the browser, and puts wp-config.php back exactly when you switch it off.

The log panel on a site's Debug log view in ReDock Web: the file wp-content/debug.log, last written 2026-09-07 09:41 UTC, a note that the site keeps at most 50 MB per log and three logs in all and is holding two debug logs, and a box of dated PHP warnings, notices, deprecations and a database error.

The WordPress debug log is the file WordPress writes its notices, warnings and fatal errors to, wp-content/debug.log by default, and on a client’s live site it is usually the fastest way to find out why something broke. It only exists while debugging is switched on in wp-config.php. ReDock Web switches it on for one site from the site’s Logs tab, behind a confirm that says what will change. It keeps errors out of the pages visitors see, and lets you read and search the log in the browser. Switching it off puts wp-config.php back exactly as it was. This post switches the log on for one client site, reads it, deals with a site that was showing errors to visitors, and switches it off.

The three constants, and why a live site only wants two of them

WordPress’s debugging guide describes three constants that work together:

  • WP_DEBUG turns WordPress’s debug mode on. It is false unless something sets it.
  • WP_DEBUG_LOG also saves every error to a debug.log file, in wp-content unless a path is given.
  • WP_DEBUG_DISPLAY decides whether the messages are printed into the HTML of the page as well. Its default is true.

That last default is the trap. Switch WP_DEBUG on by hand on a live site, forget the third constant, and warnings start appearing in pages your client’s customers are reading. The same guide says plainly that the debug tools are not recommended on live sites and are meant for local testing and staging.

Sometimes the live site is the only place a fault happens. The safer way to debug there is the log on, the display off, and debugging on for no longer than the problem needs.

The task: debug one client site

1. Open the Debug log

Open the site, then Logs. The tab holds three views: Activity, Site log and Debug log. Open Debug log.

On a site with debugging off, the panel reads the three constants as wp-config.php sets them, says whether they were set by ReDock or on the site, and explains what switching on will do.

The Debug logging panel for a site with debugging off: the state reads Off, a line says these constants were set on the site, not by ReDock, WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY all read false, and a paragraph says switching this on rewrites wp-config.php after copying it and checking the new file parses. Below are a Turn debug logging on button, a field for the most the site keeps per log, and a log panel saying there is no debug log on this site yet.

2. Switch it on, after reading the confirm

Turn debug logging on opens a confirm that lists what happens, in order.

A confirm headed Turn on WordPress’s debug log on two.example, listing four steps: ReDock rewrites wp-config.php setting WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY so errors are written to a file and never shown to visitors; a byte-for-byte copy of wp-config.php is saved beside it first and the new file is checked with php -l before a byte is written; WordPress starts appending every notice, warning and fatal to wp-content/debug.log and the site keeps at most three logs, moving the oldest out; and switching this off puts wp-config.php back exactly as it was. Below are Turn debug logging on and Cancel buttons.

The second line is the reason not to do this over FTP in a hurry. A copy of wp-config.php is saved before anything changes, and the new file is checked with php -l before a single byte is written, so a syntax error in the new file never reaches the site.

3. Know why display stays off

ReDock sets WP_DEBUG_DISPLAY to false when it switches logging on. Errors go to the file and never to a visitor.

A site where somebody had already set display to true by hand is marked Needs attention, and the panel says what that means:

The Debug logging panel for a site marked Needs attention: WP_DEBUG, WP_DEBUG_LOG and WP_DEBUG_DISPLAY all read true, set on the site and not by ReDock, with a paragraph saying PHP errors are being printed into pages visitors can see, stack traces and file paths included, that turning debug logging on here sets display to false, and that turning it off puts the file back exactly as it was.

That state is worth fixing even when nothing is being debugged, because every error printed on a page shows the site’s file paths to whoever is looking at it.

4. Read the log

With logging on, The log shows the file, when it was last written, and the end of it in a box of its own. The picture at the top of this post is that panel, showing 63.9 KB of a 143 KB log.

  • Find in this log searches by a file name, a class or a message.
  • Which log switches between the current log and the ones before it.
  • Older pages back through the file.
  • Download the whole log gives you a signed link to the full file.

When a site has just broken, look for the first fatal error after the deploy or update that preceded it. That one usually matters most, and the notices around it are often noise.

5. Understand the three generations

The site keeps a cap you set per log, and three logs in all. When the current log passes the cap, it moves aside and the oldest goes. Debug logging cannot fill a client’s disk, however busy the site.

6. Switch it off

When you have what you need, press Turn debug logging off.

The Debug logging panel with logging Running, switched on from ReDock, WP_DEBUG and WP_DEBUG_LOG true and WP_DEBUG_DISPLAY false, a note that WordPress is appending every notice, warning and fatal to wp-content/debug.log and that switching it off rewrites wp-config.php back to exactly what it was before, leaving the log file where it is, and a Turn debug logging off button.

wp-config.php goes back to exactly what it was before, and the log file stays where it is. Nothing is deleted. WordPress’s own Site Health screen flags a site with WP_DEBUG_LOG set as writing its errors to a file that is potentially available to all users, so once you have what you need from the log, take the file off the server.

Nothing here is automatic. ReDock never switches debug logging on by itself, and it stays on until somebody switches it off.

The panel and the log view are described in the security guide.

FAQ

Where is the WordPress debug log file?

In wp-content/debug.log, unless WP_DEBUG_LOG in wp-config.php names another path. WordPress creates it the first time it has something to write while logging is on.

Do I need FTP access to switch debugging on?

No. ReDock Connect rewrites wp-config.php on the site, after saving a copy beside it and checking the new file parses.

What if the site was already writing a debug log before?

The panel says the constants were set on the site, not by ReDock. Switching off rewrites those lines after taking a copy of wp-config.php beside it, and the log itself is left where it is.

Will the log fill the disk?

No. The site keeps a cap per log that you set, and three logs in all, moving the oldest out.

Read one site’s log

A free account connects one live WordPress site, with the debug log switch and the log view on it. Connect the site that throws the error nobody can reproduce locally.

Create a free account and read the log without opening wp-config.php.