Maintenance module Free feature

Debug log viewer

Reads wp-content/debug.log from inside wp-admin, so you can see PHP errors without FTP or server access.

What it does

The error log, without opening an FTP client

Debug log viewer is a Vectro maintenance feature that displays the contents of wp-content/debug.log inside wp-admin, showing the last 200 lines with a button to clear the file.

When WP_DEBUG_LOG is enabled, WordPress writes PHP notices, warnings and fatal errors to wp-content/debug.log. Reading that file normally means an FTP client or a host file manager, which is enough friction that most people never look until something is badly broken.

This feature shows the file inside wp-admin. You get the last 200 lines, plus a button to clear the file.

It requires WP_DEBUG_LOG to be enabled in wp-config.php. If the file does not exist, Vectro tells you so rather than showing an empty panel that looks like a bug.

The Maintenance module is off by default on a new install. Switch it on from the Vectro dashboard before this feature can run.

Why it matters

A log nobody reads is a log that is not working

The debug log is where a site tells you what is wrong: the deprecated function that will break on the next PHP upgrade, the plugin throwing a notice on every page load, the fatal error behind an intermittent white screen. All of it is recorded and almost none of it is read, because reading it means going and getting it.

A debug.log that has quietly reached several hundred megabytes is both a disk problem and a sign that something is erroring constantly. Vectro reads only the end of the file, so even a log that size opens quickly.

Last 200 lines
The recent tail rather than the whole file, so a large log still loads quickly.
Safe on large logs
Only the last 512 KB of the file is read, so a log of hundreds of megabytes opens without exhausting memory.
Clear empty state
If no debug.log exists yet, Vectro says so and tells you how to start one.
Clear button
Empty the file after fixing something, so the next entries are unambiguous.

How to use it

Enable logging, then read it

1
Switch on the Maintenance module
Go to Vectro > Dashboard in wp-admin and turn on the Maintenance module toggle. It is off by default on a new install.
2
Enable debug logging in wp-config.php
Set WP_DEBUG to true and WP_DEBUG_LOG to true. Set WP_DEBUG_DISPLAY to false so errors are written to the log rather than shown to visitors.
3
Open the Maintenance module
Go to Vectro > Maintenance in wp-admin.
4
Find the Debug Log card
It shows the last 200 lines of the log, or a message if no debug.log exists yet.
5
Read from the bottom
The most recent entries are last. Look for repeated identical errors, which indicate something firing on every page load.
6
Clear the log after fixing something
Use the clear button so the next entries are unambiguous rather than mixed in with old noise.

Technical detail

How the file is read

Vectro reads wp-content/debug.log from the end rather than loading the whole file into memory: it seeks to the last 512 KB and ignores everything before it, which is what makes it safe to open a log that has grown very large. Only the last 200 lines are rendered.

Access is restricted to users with the capability to manage options, so the log is not exposed to lower-privileged accounts. Debug logs routinely contain file paths, query fragments and occasionally credentials in a stack trace, so this restriction matters.

File
wp-content/debug.log
Requires
WP_DEBUG_LOG set to true in wp-config.php.
Shown
The last 200 lines, and a Clear Debug Log button.
Reading method
Only the last 512 KB is read, so very large files do not exhaust memory.
Access
Restricted to users who can manage options.
If the file is missing
Vectro shows a message that no debug.log was found and how to start one with WP_DEBUG_LOG.
Custom log paths
Not read. Vectro always reads wp-content/debug.log.

Compatibility

Runs alongside everything

No conflicts detected. Vectro runs this feature regardless of other plugins active.

Questions

Frequently asked

What does the Vectro debug log viewer show?

The Vectro debug log viewer shows the last 200 lines of wp-content/debug.log inside wp-admin, with a button to clear the log file. If no debug.log exists yet, it tells you how to start one.

Does the Vectro debug log viewer work with other debugging plugins?

Vectro runs this feature regardless of other plugins active, because no conflicts are detected for it. It reads the standard WordPress debug.log file, so any plugin writing to that same file will have its entries shown as well.

How do I view the WordPress debug log in Vectro?

Set WP_DEBUG and WP_DEBUG_LOG to true in wp-config.php, switch on the Maintenance module under Vectro > Dashboard, then open Vectro > Maintenance. The Debug Log card shows the last 200 lines of the log, with a button to clear it.

Is the Vectro debug log viewer free or Pro?

Yes, The Vectro debug log viewer is free. It is included in the free Vectro plugin on WordPress.org with no account required.

Why does my WordPress debug log show nothing?

The most common reason is that WP_DEBUG_LOG is not enabled in wp-config.php, so WordPress is not writing the file at all. Vectro shows a prompt explaining this rather than displaying an empty panel when the file does not exist.

Related features

Diagnose and recover

Vectro Pro adds an error log viewer with severity filtering and a PHP error email notification system. See Pro plans

Download Vectro free on WordPress.org

27 features across Security, Performance and Maintenance. No account required, no expiry, unlimited sites.

Scroll to Top