Variable Inspector Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Variable Inspector allows you to easily dump your PHP variables and display them in visually clean manner at a central location to help you conveniently do some code debugging work.
It aims to be an easy and useful enough debug tool. Perhaps somewhere between traditional var_dump() and something full-blown like Xdebug. No debug info will be shown to site visitors, and the variable content is nicely formatted for review on the inspector page in wp-admin. Also, because it is a regular WordPress plugin, you simply plug-and-play with no complicated setup required.
Variable Inspector is inspired by WP Logger and Ray.
How to Use
Simply place the following line anywhere in your code after the $variable_name
you’d like to inspect:
do_action( 'inspect', [ 'variable_name', $variable_name ] );
If you’d like to record the originating PHP file and line number, append the PHP magic constants __FILE__
and __LINE__
as follows.
do_action( 'inspect', [ 'variable_name', $variable_name, __FILE__, __LINE__ ] );
This would help you locate and clean up the inspector lines once you’re done debugging.
Give Back
- A nice review would be great!
- Give feedback and help improve future versions.
- Github repo to contribute code.
- Donate and support my work.
Screenshots
No screenshots provided