BACK TO DIRECTORY

Debug Bar Custom Info

by FitWP

5.0
(1 ratings)

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

Custom Info Panel

Custom Info Panel

Plugin Details

Active Installs
10
Total Downloads
3,094
Version
1.0.2
Requires WP
3.8
Requires PHP
Tested Up To
3.9.40
Added
2014-06-13
Last Updated
2014-07-01 6:28am GMT

Ratings

5
1
4
0
3
0
2
0
1
0

Tags