前言介紹
- 這款 WordPress 外掛「DebugPress: Debugger in Popup」是 2020-09-16 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2024-11-02,距離現在已有 183 天。
- 外掛最低要求 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 | 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 |
延伸相關外掛(你可能也想知道)
Query Monitor – The developer tools panel for WordPress 》ministrator user). This cookie can be set by defining QM_AUTH_KEY in your wp-config.php file., To learn more about how to use Query Monitor, please...。
Query monitor Twig profile 》查找緩慢的網頁,並發現原因!立即在您的 Query Monitor 工具欄中查看 twig 的分析信息。, Query Monitor 的 Twig profile 擴展可幫助您注意到頁面使用的模板...。
Query Monitor bbPress & BuddyPress Conditionals 》將 bbPress 和 BuddyPress 條件式添加到 John Blackbourn 優秀的 Query Monitor 外掛中。
REST Query Monitor 》請注意,不建議在生產環境中運行此外掛程式。, 啟用此外掛程式以使用它。啟用後,在 REST 請求期間執行每個查詢時,HTTP 回應標頭將設置 “X-REST-Query...。
Query Monitor GiveWP 》這個外掛增加了對 GiveWP 資訊的支援,可以在開發者外掛 Query Monitor 中查看。, , 定義了該請求的 GiveWP 常數。, 目前的 GiveWP 條件式標籤。, , 如果找到...。