Debug Bar 是一个 WordPress 插件,它在管理栏中添加一个调试菜单,显示查询、缓存等调试信息。本文档介绍了 Debug Bar 及其多个插件,这些插件扩展了其功能,为开发者提供更详细的调试工具。
The Debug Bar is a plugin that adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
This is the main plugin, adding the base functionality that is extended by the remaining plugins listed on this page.
When WP_DEBUG is enabled it also tracks PHP Warnings and Notices to make them easier to find.
When SAVEQUERIES is enabled the mysql queries are tracked and displayed.
This plugin adds a console in which you can run arbitrary PHP. This is excellent for testing the contents of variables, among many other uses.
This plugin adds a new panel to the Debug Bar that displays the registered shortcodes for the current request.
Additionally it will show you:
This plugin adds three new panels to the Debug Bar that display the defined constants available to you as a developer for the current request:
This plugin adds a new panel to the Debug Bar that displays detailed information about the registered post types for your site.
This plugin adds a new panel in the Debug Bar displaying information about WordPress’ scheduled events.
Once installed, you will have access to the following information:
This plugin adds two more tabs in the Debug Bar to display hooks (Actions and Filters) attached to the current request. Actions tab displays the actions hooked to current request. Filters tab displays the filter tags along with the functions attached to it with respective priority.
Visit Debug Bar Actions and Filters Addon
This plugin adds information about WordPress transients to a new panel in the Debug Bar.
Once installed, you will have access to the following information:
This plugin lists scripts and styles that are loaded, in which order they’re loaded, and what dependencies exist.
Visit Debug Bar List Script & Style Dependencies
This plugin will add a new panel to Debug Bar that will display and profile remote requests made through the HTTP API.
Once installed, you will have access to the following information:
Optionally, you can add ?dbrr_full=1 to your URL to get additional information, including all request parameters and a full dump of the response with headers.