Debug Bar Custom Info

This plugin adds an extra panel to Debug Bar plugin that allows developers to output custom debug info.

Author:FitWP (profile at wordpress.org)
WordPress version required:3.8
WordPress version tested:3.9.1
Plugin version:1.0.2
Added to WordPress repository:13-06-2014
Last updated:01-07-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:http://fitwp.com
Total downloads:2 383
Active installs:10+
plugin download
Click to start download

This plugin adds an extra panel to 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)

Project Homepage | Report Bugs | Donate


Screenshots
ChangeLog