Title: kb_debug.php
Author: kunalb
Published: <strong>May 26, 2011</strong>
Last modified: May 27, 2011

---

Search plugins

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.

![](https://s.w.org/plugins/geopattern-icon/kb-debug.svg)

# kb_debug.php

 By [kunalb](https://profiles.wordpress.org/kunalb/)

[Download](https://downloads.wordpress.org/plugin/kb-debug.0.2.4.zip)

 * [Details](https://wordpress.org/plugins/kb-debug/#description)
 * [Reviews](https://wordpress.org/plugins/kb-debug/#reviews)
 *  [Installation](https://wordpress.org/plugins/kb-debug/#installation)
 * [Development](https://wordpress.org/plugins/kb-debug/#developers)

 [Support](https://wordpress.org/support/plugin/kb-debug/)

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

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

## Screenshots

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

## Installation

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.

## FAQ

  Why?

Because.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ kunalb ](https://profiles.wordpress.org/kunalb/)

[Translate “kb_debug.php” into your language.](https://translate.wordpress.org/projects/wp-plugins/kb-debug)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/kb-debug/), check out
the [SVN repository](https://plugins.svn.wordpress.org/kb-debug/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/kb-debug/) by [RSS](https://plugins.trac.wordpress.org/log/kb-debug/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2.4

 * Moved README to readme.txt

#### 0.2.3

 * Renamed Screenshots for wp.org to display.

#### 0.2.2

 * Modified readme.txt and updated the PHP version.

#### 0.2

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

#### 0.1

 * First version.

## Meta

 *  Version **0.2.4**
 *  Last updated **15 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.2.1**
 * Tag
 * [debugging](https://wordpress.org/plugins/tags/debugging/)
 *  [Advanced View](https://wordpress.org/plugins/kb-debug/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/kb-debug/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/kb-debug/reviews/)

## Contributors

 *   [ kunalb ](https://profiles.wordpress.org/kunalb/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/kb-debug/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://kunal-b.in)