跳到内容

DebugZen

v1.3.0

Parag Das · 2026年9月6日 上架

Turn WP_DEBUG on and off without FTP, then search, filter and clear debug.log in your dashboard, with grouped errors and the code behind them.

正在使用
10 以下
评分
5.0 / 5
累计下载
461
最近更新
2026年11月19日
1 条评价需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

截图

The DebugZen screen: wp-config.php debug switches, log summary, severity and source filters, and grouped log entries.
The DebugZen screen: wp-config.php debug switches, log summary, severity and source filters, and grouped log entries.
An open fatal error with the source code around the failing line, plus stack trace and raw tabs.
An open fatal error with the source code around the failing line, plus stack trace and raw tabs.
Settings for log rotation and the viewer.
Settings for log rotation and the viewer.

DebugZen gives administrators one focused screen for WordPress debugging: turn the debug constants on and off, then read, filter and clear debug.log without FTP or SSH.

Debug constants without editing files

Switches at the top of the DebugZen screen read and update these constants in wp-config.php:

  • WP_DEBUG
  • WP_DEBUG_LOG
  • WP_DEBUG_DISPLAY

Changes are written with the WP Config Transformer library, which parses wp-config.php instead of using regex or string replacement. If WP_DEBUG_LOG points to a custom file, that path is kept. If wp-config.php is read-only, DebugZen shows the exact lines to add yourself. Turning on WP_DEBUG_DISPLAY shows a reminder that errors are now printed to visitors.

A log viewer built for reading

  • Compact rows: each entry shows its severity, message, source, occurrence count and how long ago it happened. Click a row to open it in place.
  • Source, stack trace and raw entry: an open entry shows the lines of code around the error with the failing line highlighted, the full stack trace, and the raw log text. “Open in editor” jumps to that line in the plugin or theme editor for users who are allowed to edit files.
  • Grouped duplicates: identical errors collapse into one row with a count and first and last seen times.
  • Filter by severity and by source: fatal errors, warnings, notices, deprecations and info, plus the plugin, theme or core file each entry came from, with search across messages and file paths.
  • Live: watches debug.log for new lines by reading only the bytes added since the last check. New entries never move the row you are reading; they wait behind a “new entries” bar.
  • Log size management: shows the log size against your limit and clears or archives the file when it is reached.
  • Keyboard shortcuts: / or Cmd/Ctrl + K to search, j and k to move between entries, r to refresh, t to turn Live on or off, and Esc to close or clear.

Security

DebugZen is limited to administrators (super admins on multisite), and every request is checked with a nonce. Source previews need a server-signed token tied to the current user, are confined to the WordPress installation with realpath() checks, never include wp-config.php, dotfiles or the active log, and files are only read, never executed.

Third-party libraries

DebugZen includes WP Config Transformer by the WP-CLI Development Group. It is distributed under the MIT License. Its license is included at vendor/wp-cli/wp-config-transformer/LICENSE.

This plugin does not contact external services, collect telemetry, or load remote executable code.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums