kunalb/kb_debug
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
=== kb_debug.php === Contributors: kunalb Tags: Debugging Requires at least: WordPress 3.0 Tested up to: 3.2 Stable tag: 0.2 Debug your plugins and themes. == Description == * Call `kb_debug` with 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_Errors` to 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_Hooks` to the URL. To see both just add ?KB_Debug_Errors&KB_Debug_Hooks. (Essentially $_GET[var] must be set to enable that feature). == Installation == Upload `kb_debug.php` and 'kb-debug.css' to the `/wp-content/mu-plugins/` directory. (Create this directory if it doesn't exist). == 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). == Frequently Asked Questions == = Why? = Because. == Screenshots == 1. Showing how errors and hooks appear on using this plugin. 2. Showing how debugging information is shown in the plugin. == Changelog == = 0.2 = * Plugin completely refactored. * No longer uses buffering. * Features are now activated by setting $_GET variables. = 0.1 = * First version.
About
A swiss army knife for debugging wordpress plugins.
Resources
Stars
Watchers
Forks
Packages 0
No packages published