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.
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.
$var
is a string or any simple value, the value is outputted directly.$var
is an array or object, the output is the same as print_r( $var )
.And $label
is the description label (optional).
Project Homepage | Report Bugs | Donate