This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.



  • 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).


  • 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).


  • Showing how errors and hooks appear on using this plugin.
  • Showing how debugging information is shown in the plugin.


Upload kb_debug.php and ‘kb-debug.css’ to the /wp-content/mu-plugins/ directory. (Create this directory if it doesn’t exist).

NOTE: These files must be placed directly under mu-plugins: ie mu-plugins/kb_debug.php and mu-plugins/kb-debug.css.

Putting these into mu-plugins allows the plugin to capture the most number of hooks it can.




Contributors & Developers

“kb_debug.php” is open source software. The following people have contributed to this plugin.


Translate “kb_debug.php” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Moved README to readme.txt


  • Renamed Screenshots for to display.


  • Modified readme.txt and updated the PHP version.


  • Plugin completely refactored.
  • No longer uses buffering.
  • Features are now activated by setting $_GET variables.


  • First version.