Dev Debug
A WordPress MU plugin for providing some useful debugging & feedback functions for plugin/theme developers.
by Evan Mattson (@aaemnnosttv) · github.com/aaemnnosttv/dev-debug
★ 9stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/aaemnnosttv/dev-debug/archive/refs/heads/master.zipFrom the readme
Dev Debug
A WordPress plugin for developing plugins.
Dev Debug provides some handy functions for analyzing your code and giving some helpful feedback.
In order to be available for use in early plugin execution, Dev Debug needs to be included first. It's for this reason that Dev Debug was designed as a MU plugin, but it may also be installed as a normal plugin.
Disclaimer: This plugin is a handy tool. It is not intended as a replacement for a real debugging solution like Xdebug. If you don't know what xdebug can do, drop what you're doing and check that out immediately.
You can thank me later :smile:
Basic Usage
Non-persistent Data Capture
Dev Debug's primary feature is essentially a super vardump. Want to dump the contents of a variable/expression?
Simply use ddprint( $somevariable ); and you will see a nice dump at the bottom of the page.
Example:
Want to label your dump? ddprint( $data, $label ) (label defaults to the datatype of $data ). Useful when capturing many items at a time, eg: within the loop.
Each dump shows up as an individual panel at the bottom of the loaded page, regardless of where you are in WP.
The default dump representation is varexport but you