[WordPress] 外掛分享: DebugPress: Debugger in Popup

WordPress 外掛 DebugPress: Debugger in Popup 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「DebugPress: Debugger in Popup」是 2020-09-16 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2025-09-29,距離現在已有 149 天。
  • 外掛最低要求 WordPress 5.5 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

gdragon |

外掛標籤

debugging | dev4press | development | ajax monitor | query monitor |

內容簡介

DebugPress 是一個易於使用的外掛程式,實現了用於調試和分析當前加載的 WordPress 網站頁面的彈出窗口,支持攔截 AJAX 請求。主調試窗口顯示為彈出窗口,通過 WordPress 工具欄中集成 Bug 按鈕或懸浮在頁面上啟動。

該外掛程式目前有22個標籤在彈出窗口調試器中,顯示與當前頁面、WordPress 設置、後台 AJAX 调用等相關的所有信息以及更多。

該外掛程式不會修改或替換任何 WordPress 文件或功能。

主頁和 GitHub

了解該外掛程式的更多信息:DebugPress 網站
貢獻外掛程式開發:DebugPress on GitHub

快速概述視頻

對象美化列印

為了顯示對象或數組的內容,該外掛程式通過使用更簡單的 PrettyPrint 库或更強大的第三方庫 Kint 實現了美化列印功能。您可以從外掛程式設置中的高級選項卡中選擇其中一個。

調試器面板

目前,該外掛程式具有以下面板:

基本
請求 (可選)
管理員 (僅限管理員端)
查詢 (僅限前端)
內容 (可選)
角色 (可選)
常量 (可選)
SQL 查詢 (如果啟用 SQL 查詢日誌記錄)
用戶 (可選,僅當用戶已登錄時)
PHP (可選)
服務器 (可選)
HTTP (可選,如果捕獲了 HTTP API 調用)
bbPress (可選,僅在 bbPress 論壇頁面上)
外掛程式 (可選,如果外掛程式存儲數據)
Enqueue (可選)
錯誤 (如果捕捉到 PHP 錯誤)
已廢棄的 (如果捕捉到 PHP 已廢棄的警告)
錯誤 (如果 WordPress 正在錯誤地進行操作)
AJAX (如果在頁面上啟用 AJAX 調用)
存儲 (如果有用戶存儲的對象可顯示)
工具 (內部和外部工具鏈接)
調試日誌 (從 WordPress 'debug.log' 上按需加載內容)

SQL 查詢

該面板列出 WordPress 所有運行的查詢,並允許您按執行順序或執行時長對查詢進行排序,並且所有查詢都可以按查詢類型、目標數據庫表或調用它的 WordPress 函数進行篩選。每個查詢顯示執行時間、順序、調用程序和完全格式化的易於閱讀的 SQL 查詢。

PHP 和 WordPress 錯誤

外掛程式有3個面板專門顯示 PHP 和 WordPress 錯誤和警告。外掛程式在頁面加載期間捕捉此信息,並顯示 PHP 調試跟踪函數返回的完整調試跟踪。

AJAX

該外掛程式跟踪通過 WordPress 的 admin-ajax.php 處理程序收到的每個 AJAX 調用,在每個響應中,它都會返回帶有 AJAX 請求基本執行信息的 HTTP 头。現在,外掛程式不返回已記錄的錯誤或 SQL 查詢列表,因為兩者都可能產生超出 HTTP 標頭限制的巨大輸出。計畫在未來的外掛程式版本中引入這些功能。

信息面板

在管理工具菜單中,外掛程式添加了 DebugPress Info 頁面,顯示多個面板。

PHP Info:從 phpinfo() 函數返回的完整格式化結果
OPCache Info:OPCache PHP 擴展的完整設置和統計信息
MySQL 變數:檢索完整的 MySQL 設置

原文外掛簡介

DebugPress is an easy-to-use plugin implementing popup for debugging and profiling currently loaded WordPress powered website page with support for intercepting AJAX requests. The main debugger window is displayed as a popup, activated through the button with the Bug integrated into WordPress Toolbar, or floating on the page.
The plugin currently has a total of 22 tabs in the popup debugger window, showing all kinds of information relevant to the current page, WordPress setup, background AJAX calls, and much more.
The plugin doesn’t modify or replace any WordPress files or functions.
Home and GitHub

Learn more about the plugin: DebugPress Website
Contribute to plugin development: DebugPress on GitHub

Quick Overview Video

Pretty Print for objects
To display the content of objects or arrays, plugin has pretty print functionality through use of simpler PrettyPrint library, or more robust third-party library Kint. You can choose one or the other from the plugin Settings, Advanced tab.
Debugger Panels
Currently, the plugin has the following panels:

Basic
Request (optional)
Query (for frontend only)
Content (optional)
Roles (optional)
Constants (optional)
Hooks (optional)
PHP (optional)
Server (optional)
Enqueue (optional)
SQL Queries (if SQL queries logging is enabled)
User (optional, if user is logged in only)
HTTP (optional, if HTTP API calls are captured)
bbPress (optional, on bbPress forum pages only)
Plugins (optional, if plugins store data)
Errors (for all captured PHP errors)
Doing It Wrong (for captured WordPress Doing It Wrong warnings)
Deprecated (for captured PHP deprecated warnings)
AJAX (for captured AJAX calls while page is active)
Store (for any user stored objects during the page loading)
Tools (internal and external tools links)
Debug Log (load content on demand from WordPress ‘debug.log’)
Layout (control the size, position and activation of the popup)

SQL Queries
This panel lists all the queries WordPress has run. It allows you to order the queries by execution order or length of execution, and all queries can be filtered by the query type, database table it targets or the WordPress function that called it. Every query displays the execution time, order, caller functions stack and fully formatted SQL query that is easy to read. For some Dev4Press created plugins (and that list will grow), DebugPress can detect the source of the query and allow you to filter by the plugin calling the query.
PHP and WordPress Errors
Plugin has 3 panels dedicated to showing PHP and WordPress errors and warnings. The Plugin captures this information during the page load, and it shows full debug trace as returned by the PHP debug tracing function.
AJAX
The plugin tracks every AJAX call coming through WordPress admin-ajax.php handler, and with every response, it returns HTTP headers with AJAX request basic execution information. Right now, plugin is not returning a list of logged errors or SQL queries, because both can produce huge output that goes over the HTTP header limits. Plan is to introduce these in the future plugin versions.
Info Panels
In the administration Tools menu, plugin adds DebugPress Info page showing several panels

PHP Info: full formatted results from phpinfo() function
OPCache Info: full settings and statistics for the OPCache PHP extension
MySQL Variables: full MySQL settings retrieved from the database

Plugin Settings
The plugin has various options controlling the plugin activation, button integration position, user roles that can see the debugger window, options to attempt overriding WordPress debug flags and options controlling the visibility of optional debugger panels.
Log into Database
Debugger popup is visible for the request running in the browser. But there are many requests that are happening in the background (AJAX calls, REST API calls…), and for them, you can’t see errors, call information and other stuff in the debugger. Because of that, DebugPress supports logging of various events into database with the use of ‘coreActivity’ plugin, and it is highly recommended to install and use coreActivity.
Log various debug events into a database with the free plugin: coreActivity Plugin, supporting over 120 events and 10 popular WordPress plugins. DebugPress related events will be logged and available for later analysis, and this includes errors, AJAX calls, and HTTP API calls.
Documentation and Support
To get help with the plugin, you can use WordPress.org support forums, or you can use Dev4Press.com support forums.

Plugin Documentation: DebugPress Website
Support Forum: Dev4Press Support

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「DebugPress: Debugger in Popup」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | 2.1 | 2.2 | 3.0 | 3.1 | 3.2 | 3.3 | 3.4 | 3.5 | 3.6 | 3.7 | 3.8 | 3.9 | 4.0 | 4.1 | 1.2.1 | 1.3.1 | 1.3.2 | 1.4.1 | 3.0.1 | 3.4.1 | 3.5.1 | 3.9.1 | 3.9.2 | trunk | 3.7.0.1 |

延伸相關外掛(你可能也想知道)

  • P3 (Plugin Performance Profiler) 》這個外掛程式可以創建您 WordPress 網站的外掛程式效能概況,並且藉由測量這些外掛對網站載入時間的影響。通常WordPress網站由於過多或配置不佳的外掛程式而...。
  • Freesoul Deactivate Plugins – Disable plugins on individual WordPress pages 》FDP 可讓您在特定頁面上停用外掛程式,以進行速度優化、偵錯和解決問題。它可適用於所有頁面、文章、定製文章(可公開查詢)、歸檔和後端頁面。, , 使用 FDP...。
  • Fatal Error Notify 》該外掛在偵測到網站發生致命錯誤(或其他錯誤層級,可配置)時,會發送電子郵件通知給您。, 與傳統的運行時間監控服務不同,這個外掛可以在偵測到任何頁面或...。
  • WP Safe Mode 》WP Safe Mode 可讓您暫時停用/啟用特定外掛,並切換到其他佈景主題以檢視您的網站。, 如果您遇到特定外掛或佈景主題的問題並需要進行疑難排解,但又不想影響...。
  • Debug Log Viewer 》**總結:**, , Debug Log Viewer 簡化了檢視和管理 WordPress debug.log 檔案的過程。這是開發人員或網站管理員所需的完美工具,他們可以通過追蹤錯誤、警告和...。
  • Debug Bar Console 》在除錯列中新增了一個PHP/MySQL控制台。需要 Debug Bar 插件 (v0.5或更新版本)。。
  • WP PHP Console 》, PHP Console 讓你可以透過 Google Chrome 擴充元件 PHP Console 和 PHP Console 伺服器程式庫 處理 PHP 錯誤和例外、輸出變數、遠端執行 PHP 程式等等多種...。
  • Ray 》Ray 是一款美觀、輕量的桌面應用程式,可幫助您進行應用程式的偵錯操作。可使用免費試用版,也可透過許可證進行解鎖。, 安裝此外掛後,您可以使用 ray() 函數...。
  • Developer Loggers for Simple History 》將更多的日誌記錄器帶入WordPress使用者歷史外掛Simple History中。, 這對於網站開發人員在網站開發期間或維護現有的網站時非常有用。, 包含的日誌記錄器和外...。
  • Editor Cleanup For Elementor: clean up and solve plugin conflicts with the Elementor editor 》Editor Cleanup For Elementor 是一個外掛,屬於 Freesoul Deactivate Plugins 的補充功能,用於整理 Elementor 的編輯器。, 此外掛不僅整理其他外掛的資源,...。
  • WP Output Log File 》這個外掛可以控制輸出日誌檔案,無論是否開啟 WP_DEBUG 模式。, 使用此外掛,您可以指定輸出目錄和檔案名稱,並可下載和刪除檔案。, 除此之外,您還可以指定...。
  • Premmerce Dev Tools 》這個外掛旨在為 WordPress 平台上的開發、測試和除錯代碼提供更方便的工具。, 我們根據我們的研究創建了這個外掛:「WordPress 開發環境和開發人員最佳實踐評...。
  • Phpinfo 》此外掛會列印出您的網頁伺服器 PHP 設定以及有關您的 WordPress 安裝的其他資訊。這對於在各種 WordPress 支援論壇上發表文章是很重要的。。
  • Editor Cleanup For Oxygen: FDP add-on to cleanup the Oxygen editor 》Editor Cleanup For Oxygen 是 增加的 Freesoul Deactivate Plugins 的 WordPress 外掛,可清理 Oxygen 的編輯器。, 它不僅可以清理其他外掛添加的資源,它們...。
  • BlackBox Debug Bar 》BlackBox 是像 Symfony 的非侵入式除錯工具列,附加在瀏覽器視窗的頂端。, 它如何協助您開發:, 1. 即時檢視全域變數(GET、POST、COOKIE、SERVER), 2. 除錯...。

文章
Filter
Apply Filters
Mastodon