Directory / plugin
kb_debug.php
v0.2.4 · by kunalb
Debug your plugins and themes.
About this plugin
- Call
kb_debugwith any arguments that you want to log and they will be pretty printed at the end of the document. - To log and show a list of all warnings, errors and notices generated by your plugin, add
?KB_Debug_Errorsto your URL. - To see a list of all hooks in the order they fire as well as what arguments they are called with and what functions run on them (again, in which order),
add a?KB_Debug_Hooksto the URL.
To see both just add ?KB_Debug_Errors&KB_Debug_Hooks. (Essentially $_GET[var] must be set to enable that feature).
Features
- Logs and displays all warnings, errors, etc. alongwith their context.
- Logs and displays all hooks alongwith the argument(s) each hook is called with and the functions that run on that particular hook (in order).