Title: Debug Bar Custom Info
Author: FitWP
Published: <strong>2014 年 6 月 13 日</strong>
Last modified: 2014 年 7 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/debug-bar-custom-info.svg)

# Debug Bar Custom Info

 作者：[FitWP](https://profiles.wordpress.org/fitwp/)

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

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

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

## 描述

This plugin adds an extra panel to [Debug Bar](https://wordpress.org/plugins/debug-bar/)
plugin that allows developers to output custom debug info.

Developers can log any variable to see its value when running PHP in WordPress. 
This helps developers see the real-time values of variables. It works exactly like`
console.log()` in browsers.

#### How to add custom debug info

Add the following code wherever you want to debug a variable:

    ```
    do_action( 'add_debug_info', $var, $label );
    ```

where `$var` can has any data type.

 * If `$var` is a string or any simple value, the value is outputted directly.
 * If `$var` is an array or object, the output is the same as `print_r( $var )`.

And `$label` is the description label (optional).

#### How to view debug info

 * Click on **Debug Bar** in the top right of the admin bar
 * Select **Custom Info** panel (see [screenshots](https://wordpress.org/plugins/debug-bar-custom-info/screenshots/))

[Project Homepage](http://fitwp.com/plugins/debug-bar-custom-info/) | [Report Bugs](https://github.com/fitwp/debug-bar-custom-info/issues)
| [Donate](http://www.deluxeblogtips.com/donate/)

## 屏幕截图

[⌊Custom Info Panel⌉⌊Custom Info Panel⌉[

Custom Info Panel

## 安装

 1. Unzip the download package
 2. Upload `debug-bar-custom-info` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ FitWP ](https://profiles.wordpress.org/fitwp/)
 *   [ Anh Tran ](https://profiles.wordpress.org/rilwis/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * Add 2nd param “label” to `do_action`

#### 1.0.1

 * Use `do_action` to prevent fatal error when plugin files is not loaded

#### 1.0

 * First release

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/debug-bar-custom-info/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)
 *  [高级视图](https://cn.wordpress.org/plugins/debug-bar-custom-info/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ FitWP ](https://profiles.wordpress.org/fitwp/)
 *   [ Anh Tran ](https://profiles.wordpress.org/rilwis/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.deluxeblogtips.com/donate)