Title: Debug Bar
Author: WordPress.org
Published: <strong>2010 年 11 月 4 日</strong>
Last modified: 2026 年 3 月 1 日

---

搜索插件

![](https://ps.w.org/debug-bar/assets/banner-772x250.png?rev=3050748)

![](https://ps.w.org/debug-bar/assets/icon.svg?rev=3050748)

# Debug Bar

 作者：[WordPress.org](https://profiles.wordpress.org/wordpressdotorg/)

[下载](https://downloads.wordpress.org/plugin/debug-bar.1.1.8.zip)

 * [详情](https://cn.wordpress.org/plugins/debug-bar/#description)
 * [评价](https://cn.wordpress.org/plugins/debug-bar/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/debug-bar/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/debug-bar/#developers)

 [支持](https://wordpress.org/support/plugin/debug-bar/)

## 描述

Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging
information.

A must for developers!

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.

To enable these options, add the following code to your `wp-config.php` file:

    ```
    define( 'WP_DEBUG', true );
    define( 'SAVEQUERIES', true );
    ```

Add a PHP/MySQL console with the [Debug Bar Console plugin](https://wordpress.org/plugins/debug-bar-console/).

There are numerous other add-ons available to get more insight into, for instance,
the registered Post Types, Shortcodes, WP Cron, Language file loading, Actions and
Filters and so on. Just [search the plugin directory for ‘Debug Bar’](https://wordpress.org/plugins/search/debug+bar/).

## 安装

Use automatic installer.

## 评价

![](https://secure.gravatar.com/avatar/e9f5f94041ff4fb0098fc5bd67cdba10151f79aad8e2f9622d7664647925b388?
s=60&d=retro&r=g)

### 󠀁[Simple and easy](https://wordpress.org/support/topic/simple-and-easy-536/)󠁿

 [Lene](https://profiles.wordpress.org/lenesachs/) 2026 年 3 月 27 日

It works…

![](https://secure.gravatar.com/avatar/cbedb9fe7caa2eae30b6d21614ca98124d474155a8efada5ecfd422989da93fc?
s=60&d=retro&r=g)

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-2898/)󠁿

 [Michael Galli](https://profiles.wordpress.org/galliweb/) 2025 年 11 月 14 日

Finding bugs is very easy and efficient with that plugin. I can highly recommend
it.

![](https://secure.gravatar.com/avatar/1b69f074358e8573b4965ea7a3b799f32a4344d8e4e1c4095fed29a9994479ed?
s=60&d=retro&r=g)

### 󠀁[Seemingly abandoned](https://wordpress.org/support/topic/seemingly-abandoned/)󠁿

 [James Hunt](https://profiles.wordpress.org/bonkerz/) 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.

![](https://secure.gravatar.com/avatar/73dae15a51428539eb80d1b9a980ad247bfb1c84c58c49f4d1330b9e7ee18897?
s=60&d=retro&r=g)

### 󠀁[Getting translation errors in WP 6.7](https://wordpress.org/support/topic/getting-translation-errors-in-wp-6-7/)󠁿

 [Traci Larson](https://profiles.wordpress.org/treysea/) 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!

![](https://secure.gravatar.com/avatar/c00d5de7fdcf70f8b7620cefb0df0018272bd68f9e9c5aee62f356edad0f0a03?
s=60&d=retro&r=g)

### 󠀁[it must be!](https://wordpress.org/support/topic/it-must-be-2/)󠁿

 [Marcin Pietrzak](https://profiles.wordpress.org/iworks/) 2023 年 11 月 22 日

A plugin without which I cannot imagine my work. It would definitely be much more
difficult.

![](https://secure.gravatar.com/avatar/2f3c992f507a3590d8e3cec77ae062da50bf8b4aeb3910f97ac3297e972f1ea7?
s=60&d=retro&r=g)

### 󠀁[Helpful tool](https://wordpress.org/support/topic/helpful-tool-30/)󠁿

 [Mehedi Hasan](https://profiles.wordpress.org/b-07/) 2023 年 7 月 29 日

Simple and useful.

 [ 阅读所有69条评价 ](https://wordpress.org/support/plugin/debug-bar/reviews/)

## 贡献者及开发者

「Debug Bar」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)
 *   [ Ryan Boren ](https://profiles.wordpress.org/ryan/)
 *   [ Peter Westwood ](https://profiles.wordpress.org/westi/)
 *   [ koopersmith ](https://profiles.wordpress.org/koopersmith/)
 *   [ Jon Cave ](https://profiles.wordpress.org/duck_/)
 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)
 *   [ Dion Hulse ](https://profiles.wordpress.org/dd32/)
 *   [ Juliette Reinders Folmer ](https://profiles.wordpress.org/jrf/)
 *   [ Konstantin Obenland ](https://profiles.wordpress.org/obenland/)
 *   [ Andrew Nacin ](https://profiles.wordpress.org/nacin/)
 *   [ Evan Solomon ](https://profiles.wordpress.org/evansolomon/)
 *   [ Samuel Wood (Otto) ](https://profiles.wordpress.org/otto42/)
 *   [ Andrija Vučinić ](https://profiles.wordpress.org/aidvu/)
 *   [ Joseph Scott ](https://profiles.wordpress.org/josephscott/)
 *   [ Eoin Gallagher ](https://profiles.wordpress.org/eoigal/)
 *   [ John James Jacoby ](https://profiles.wordpress.org/johnjamesjacoby/)

「Debug Bar」插件已被翻译至 17 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/debug-bar/contributors)
为本插件所做的贡献。

[帮助将「Debug Bar」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/debug-bar)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/debug-bar/)，查看[SVN仓库](https://plugins.svn.wordpress.org/debug-bar/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/debug-bar/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/debug-bar/)。

## 更新日志

#### 1.1.8

 * Add late output escaping where missing in the `WP_Query` panel.

#### 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_uname` is 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 `filemtime` instead of hardcoded values.
 * Minor CSS updates, so themes don’t override the `pre` styles.

#### 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

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/WordPress/debug-bar)

## 额外信息

 *  版本 **1.1.8**
 *  最后更新：**3 月前**
 *  活跃安装数量 **20,000+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/debug-bar/) 、 [Czech](https://cs.wordpress.org/plugins/debug-bar/)、
   [Dutch](https://nl.wordpress.org/plugins/debug-bar/) 、 [English (Canada)](https://en-ca.wordpress.org/plugins/debug-bar/)、
   [English (US)](https://wordpress.org/plugins/debug-bar/) 、 [French (France)](https://fr.wordpress.org/plugins/debug-bar/)、
   [German](https://de.wordpress.org/plugins/debug-bar/) 、 [Italian](https://it.wordpress.org/plugins/debug-bar/)、
   [Japanese](https://ja.wordpress.org/plugins/debug-bar/) 、 [Polish](https://pl.wordpress.org/plugins/debug-bar/)、
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/debug-bar/) 、 [Portuguese (Portugal)](https://pt.wordpress.org/plugins/debug-bar/)、
   [Russian](https://ru.wordpress.org/plugins/debug-bar/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/debug-bar/)、
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/debug-bar/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/debug-bar/)、
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/debug-bar/) 和 [Swedish](https://sv.wordpress.org/plugins/debug-bar/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/debug-bar)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)
 *  [高级视图](https://cn.wordpress.org/plugins/debug-bar/advanced/)

## 评级

 4.1 星（最高 5 星）。

 *  [  51 条 5 星评价     ](https://wordpress.org/support/plugin/debug-bar/reviews/?filter=5)
 *  [  3 条 4 星评价     ](https://wordpress.org/support/plugin/debug-bar/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/debug-bar/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/debug-bar/reviews/?filter=2)
 *  [  13 条 1 星评价     ](https://wordpress.org/support/plugin/debug-bar/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/debug-bar/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/debug-bar/reviews/)

## 贡献者

 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)
 *   [ Ryan Boren ](https://profiles.wordpress.org/ryan/)
 *   [ Peter Westwood ](https://profiles.wordpress.org/westi/)
 *   [ koopersmith ](https://profiles.wordpress.org/koopersmith/)
 *   [ Jon Cave ](https://profiles.wordpress.org/duck_/)
 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)
 *   [ Dion Hulse ](https://profiles.wordpress.org/dd32/)
 *   [ Juliette Reinders Folmer ](https://profiles.wordpress.org/jrf/)
 *   [ Konstantin Obenland ](https://profiles.wordpress.org/obenland/)
 *   [ Andrew Nacin ](https://profiles.wordpress.org/nacin/)
 *   [ Evan Solomon ](https://profiles.wordpress.org/evansolomon/)
 *   [ Samuel Wood (Otto) ](https://profiles.wordpress.org/otto42/)
 *   [ Andrija Vučinić ](https://profiles.wordpress.org/aidvu/)
 *   [ Joseph Scott ](https://profiles.wordpress.org/josephscott/)
 *   [ Eoin Gallagher ](https://profiles.wordpress.org/eoigal/)
 *   [ John James Jacoby ](https://profiles.wordpress.org/johnjamesjacoby/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/debug-bar/)