外掛說明
將能顯示查詢、快取及其他實用偵錯資訊的偵錯選單新增至工具列。
開發者必備外掛!
啟用 WP_DEBUG 後,系統便會開始追蹤 PHP 警告及通知,方便網站管理員尋找及查詢。
啟用 SAVEQUERIES 後,系統便會追蹤及顯示 MySQL 查詢。
如需啟用這些設定,請將以下程式碼新增至網站的 wp-config.php 檔案中:
define( 'WP_DEBUG', true );
define( 'SAVEQUERIES', true );
使用 Debug Bar Console 外掛便能加入 PHP/MySQL 主控台。
外掛目錄中還有許多可獲得更多深入解析資訊的附加元件,這些附加元件可取得網站內的已註冊內容類型、短代碼、WP Cron,語言套件載入狀況、動作及篩選器等資訊。如需取得這些附加元件,請在外掛目錄中搜尋「Debug Bar」。
安裝方式
請使用自動安裝方式安裝。
使用者評論
2025 年 11 月 14 日
Finding bugs is very easy and efficient with that plugin. I can highly recommend it.
2025 年 7 月 11 日
Debug Bar is still listed in WordPress’s own developer documentation as a go-to debugging tool, yet it hasn’t been updated in over a year and throws PHP errors. It’s a clear example of Automattic promoting a tool while failing to maintain it – a pattern that’s become too common. For a plugin they recommend, its neglect is frustrating and undermines developer trust.
2025 年 5 月 23 日
This is a very useful plugin, but I am getting errors when WP_DEBUG is set to true based on the updates in WordPress 6.7.
Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. I hope there will be an update soon!
2023 年 11 月 22 日
A plugin without which I cannot imagine my work. It would definitely be much more difficult.
2023 年 7 月 29 日
Simple and useful.
2023 年 6 月 4 日
Where is the debug? Only memory usage is displayed… Where are the usage instructions?
參與者及開發者
以下人員參與了開源軟體〈Debug Bar〉的開發相關工作。
參與者變更記錄
1.1.8
- Add late output escaping where missing in the
WP_Querypanel.
1.1.7
- Resolves a PHP Warning in WP 6.7+.
1.1.6
- 1.1.5 didn’t have the minified CSS rebuilt.
1.1.5
- Update CSS to remove gradient and shadow styles
- Use dashicons as action buttons instead of misaligned text.
1.1.4
- Fix PHP8+ critical error if
php_unameis disabled
1.1.3
- Fix notices in HTTP Requests panel when a request is stopped/doesn’t finish.
- Decode the SQL in the WP_Query panel.
1.1.2
- Fix error checking in HTTP Requests panel.
1.1.1
- Refactor the HTTP Requests panel:
- Remove jQuery usage
- Properly display response codes
- Better CSS to emphasize errors and long requests ( > 250ms )
1.1
- Add a new panel for HTTP requests using the native WP methods.
- AMP dev mode compatibility.
- Change cache busters to use
filemtimeinstead of hardcoded values. - Minor CSS updates, so themes don’t override the
prestyles.
1.0.1
- Update object cache panel CSS to be ready for new object-cache.php release with better stats()
1.0
- Improved compatibility with the WordPress.com toolbar in Jetpack
0.9
- Added panel navigation to toolbar.
- Improved localization support.
- Security fixes.
0.8.4
- Updated to avoid incompatibilities with some extensions.
0.8.3
- Updated to avoid PHP7 Deprecated notices.
0.8.2
- Updated to handle a new deprecated message in WordPress 4.0.
0.8.1
- Minor security fix.
0.8
- WordPress 3.3 compatibility
- UI refresh
- Removed jQuery UI requirement
- Full screen by default
- New debug-bar query parameter to show on page load
- Removed display cookies
- JavaScript error tracking (disabled by default)
0.7
- Made compatible with PHP < 5.2.0
- CSS Tweaks
- Load JavaScript in Footer
- Fixed display issues for WP_Query debug on CPT archives pages
- SQL/DB error tracking
0.6
- Added maximize/restore button
- Added cookie to keep track of debug bar state
- Added post type information to WP_Query tab
- Bug fix where bottom of page was obscured in the admin
0.5
- New UI
- Backend rewritten with a class for each panel
- Many miscellaneous improvements
0.4.1
- Compatibility updates for trunk
0.4
- Added DB Version information
- Updated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
- Compatibility updates for trunk
0.3
- Added WordPress Query infomation
- Added Request parsing information
0.2
- Added PHP Notice / Warning tracking when WP_DEBUG enabled
- Added deprecated function usage tracking
0.1
- Initial Release
