-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
executable file
·45 lines (31 loc) · 1.44 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
=== 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.