
GLOBUS Debug Control
v2.4.0Yevhen Leonidov · 2026年4月8日 上架
Filter PHP debug noise, toggle WP_DEBUG, read logs, and inspect cron, transients, HTTP calls, and constants from one dashboard.
- 正在使用
- 60+
- 评分
- 暂无
- 累计下载
- 936
- 最近更新
- 2026年11月18日
贡献者
截图








Turn WP_DEBUG into a focused debug dashboard – without SSH, SQL, or editing files. Filter noisy PHP error types, toggle debug constants, read debug.log, and inspect cron, transients, autoloaded options, outgoing HTTP calls, and runtime constants from the WordPress admin.
You enable WP_DEBUG to track down a bug in your code – and immediately get buried under hundreds of notices and deprecation warnings from third-party plugins and themes. Things you did not write. Things you cannot fix. The real error you are looking for is lost in the noise.
GLOBUS Debug Control solves this. Pick exactly which PHP error types you want to see, silence the rest, and get a full debug dashboard – error logs, cron health, transients, database bloat, outgoing HTTP calls, and wp-config constants – all in one place, all from the admin panel.
No SSH. No file editing. No installing five separate plugins for five separate problems.
Why developers keep it installed
- One screen instead of five plugins. Error filtering, log viewer, WP_DEBUG toggle, cron inspector, transient manager, autoloaded options, HTTP logger, and constants view live in one place.
- Less noise, not less signal. Notices, deprecations, and warnings are filtered independently. Fatal errors are never hidden.
- No SSH, no SQL, no wp-config.php edits. Everything happens in Settings -> GLOBUS Debug Control, including toggling WP_DEBUG constants.
- Safe on a live site. The diagnostic tabs are read-only. Every action is protected by capability checks and nonces. No external services, no tracking, no account.
- Fixes what WP_DEBUG breaks. Removes the php-error body class and keeps AJAX, REST, WP-Cron, and WP-CLI responses clean.
- Works with any stack. Any theme, any plugin set, single site or multisite. No setup wizard and no configuration files.
Who it is for
- Agencies and freelancers maintaining client sites where WP_DEBUG is enabled for a few minutes and then forgotten.
- Plugin and theme developers who need to see their own notices without drowning in deprecations from other code.
- Support engineers diagnosing a slow site, a stuck cron, or an unexpected outgoing HTTP request from the admin panel.
The problems this plugin solves
- Error noise – WP_DEBUG shows everything, including hundreds of notices from code you do not control. This plugin lets you suppress notices, deprecations, warnings, and strict errors independently, so you only see what matters to your own code.
- Broken layouts in debug mode – WordPress adds a
php-errorCSS class to<body>when a PHP error occurs, which can shift your page layout. This plugin removes it automatically via CSS and JavaScript. - Broken AJAX and REST responses – PHP errors leak into JSON output and break your API calls. This plugin suppresses error display during AJAX, REST, WP-Cron, WP-CLI, XML-RPC, and other non-HTML contexts automatically.
- Manual wp-config.php editing – Every time you need to toggle
WP_DEBUG, you SSH into the server, find wp-config.php, and edit a constant by hand. This plugin does it from a checkbox in the admin panel. - No log visibility – The debug.log file sits on the server, growing silently. You only check it when something is already broken. This plugin shows it in the admin with color-coded lines, pagination, live polling, download, and one-click clear.
- Invisible cron problems – Overdue cron events, orphaned hooks, and duplicate schedules silently degrade performance. This plugin surfaces them all with source detection and lets you run or delete events on the spot.
- Transient and option bloat – Expired transients and heavy autoloaded options slow down every request but are invisible without raw SQL. This plugin shows them sorted by size with one-click cleanup.
- Unknown outgoing HTTP calls – Plugins and themes make external API calls you never asked for, and you have no idea which ones are slow or failing. This plugin captures them with status codes and response times.
Settings tab
Choose which errors to see
Turn off specific PHP error types independently:
- Notices – informational messages that rarely indicate a real problem
- Deprecated – warnings about outdated functions, usually from third-party code
- Warnings – optional, keep them on if you are actively debugging
- Strict – PHP 7 strict standards messages (not applicable in PHP 8+)
Control error display
Three modes for showing errors on screen:
- Inherit – follows your
wp-config.phpsettings (default, non-intrusive) - On – always show errors, useful during active development
- Off – hide all errors from screen even if
WP_DEBUG_DISPLAYis on
Errors are always hidden automatically during AJAX requests, REST API calls, WP-Cron, and WP-CLI, so your API responses stay clean regardless of the display setting.
Error logging
Enable logging to capture errors in a file instead of (or in addition to) showing them on screen:
- Set a custom log file path (absolute or relative to
wp-content/) - Set a maximum log file size (1-100 MB); the file rotates automatically when the limit is reached
- Defaults to
wp-content/debug.logif no path is specified
Remove the php-error CSS class
WordPress adds a php-error class to the <body> tag whenever a PHP error occurs. This shifts margins and breaks your page layout – both on the front-end and in the admin. This option removes it via both CSS and JavaScript so your site looks normal even with errors present.
Early error interception (optional)
WordPress loads plugins in alphabetical order. If another plugin throws an error before GLOBUS Debug Control initialises, those errors will not be filtered. Enabling the MU-plugin dropin installs a small helper file into wp-content/mu-plugins/ that runs before any regular plugin, ensuring your filter settings apply from the very start of the request. The dropin is removed automatically when the plugin is deactivated or uninstalled.
WP_DEBUG tab
Normally, toggling WP_DEBUG means SSH access, finding wp-config.php, and editing PHP constants by hand. This tab lets you flip the five most important debug constants from the admin panel:
WP_DEBUG– master debug switchWP_DEBUG_LOG– write errors to a log file (supports a custom log path)WP_DEBUG_DISPLAY– show errors on screenSCRIPT_DEBUG– use unminified core JS/CSSSAVEQUERIES– log all database queries
The plugin locates your wp-config.php automatically and patches it in place, adding the constant if it is missing or updating the existing value. A timestamped backup copy of wp-config.php is created before the first write so the file can always be restored. Commented-out defines and block-comment sections are never touched. The current status of WP_DEBUG is always visible as a badge in the plugin header.
MCP and REST abilities
On WordPress 6.9+ the plugin registers abilities for MCP and REST clients:
gdc/get-schema– every option with its type, default and allowed values, plus supported wp-config constantsgdc/get-options– all plugin options and the effective runtime state (error_reporting,display_errors,log_errors,error_log, resolved log file, mu-plugin status, API context)gdc/update-options– patch any option by key; values are sanitised and applied immediatelygdc/reset-options– restore defaults, requiresconfirm=truegdc/get-log– tail of the error log with severity levels, optional substring filtergdc/clear-log– truncate the log file, requiresconfirm=truegdc/get-wp-config– current values ofWP_DEBUG,WP_DEBUG_LOG,WP_DEBUG_DISPLAY,SCRIPT_DEBUG,SAVEQUERIESgdc/update-wp-config– write those constants intowp-config.php, requiresconfirm=truegdc/enable-debug-logging– one-click enableWP_DEBUG+WP_DEBUG_LOG, requiresconfirm=truegdc/get-transients– database transients with summary and storage diagnosticsgdc/purge-expired-transients– delete expired transients, requiresconfirm=truegdc/get-constants– every runtime constant grouped by category, with secrets masked
All abilities require the manage_options capability. The early-loader dropin is regenerated automatically after a plugin update – no manual re-save is needed. gdc/update-wp-config keeps a timestamped backup of wp-config.php before writing.
Error Log tab
Your debug.log file can grow to hundreds of megabytes without you noticing. This tab displays it directly in the admin panel using a CodeMirror editor with line numbers. Lines are color-coded by severity: fatal/parse errors, warnings, notices/deprecations, and cron-related messages. The log is paginated (200 lines per page), supports live polling for new entries, and can be downloaded or cleared with one click. Large log files (over 2 MB) are read from the tail to keep memory usage low. When WP_DEBUG is off, the tab explains why no new lines arrive, disables the test-error generator, and offers a one-click fix that writes the debug constants to wp-config.php.
Cron Tasks tab
WordPress cron runs silently. When events are overdue, hooks are orphaned, or schedules are duplicated, there is no built-in way to see it. This tab lists all scheduled cron events with hook name, next run time, recurrence interval, and arguments. Summary cards show total events, overdue count, orphaned hooks, and duplicates. Overdue events are highlighted. You can run any event immediately or delete orphaned hooks directly from the table.
Transients tab
Expired transients pile up in the database, and without raw SQL you have no way to see or clean them. This tab displays database-stored WordPress transients from the options table with key name, data size, and expiration time. On multisite, network transients from the sitemeta table are included too. Transients stored in an external object cache (Redis, Memcached) are not shown; when such a cache is detected, the tab says so instead of showing a bare empty state. Database errors and unexpected transient-like rows are also surfaced in the notice area. Expired transients are highlighted. You can delete individual transients or purge all expired ones in one click, including network site transients. Summary cards show total count, expired count, and total data size.
Autoloaded tab
Every autoloaded option is fetched on every single page load. When plugins leave behind large serialised blobs, your site slows down and there is no obvious way to find the culprit. This tab lists autoloaded options from wp_options sorted by data size (top 200). Summary cards display total autoloaded row count and total payload size with warnings when thresholds are exceeded (over 800 KB or over 100 rows).
HTTP Log tab
Plugins and themes silently make outgoing HTTP calls – license checks, update pings, API syncs – and a slow or failing endpoint can stall your entire page load. This tab captures outgoing WordPress HTTP API requests (wp_remote_get, wp_remote_post, etc.) via the http_api_debug hook. Capturing must be explicitly enabled and stores up to 100 entries (6-hour TTL). Each entry shows the request URL, HTTP method, status code, error message, transport class, and response duration. Sensitive query parameters (key, token, secret, password, etc.) are automatically masked before an entry is stored.
Constants tab
When you need to check what debug, performance, or security constants are active at runtime, you normally have to grep through wp-config.php and hope nothing is overridden elsewhere. This tab displays every user-defined PHP constant at runtime, grouped by category: Debug, Performance, Security, Database, Auth and Salts, Paths, Other WP_* constants, and Plugin & Theme constants from plugins, themes and custom code. A name filter and collapsible groups keep large lists manageable. Sensitive values (database password, auth keys, salts, and names containing PASSWORD, SECRET, TOKEN, API_KEY, and similar markers) are automatically masked.