You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.txt
+43-5
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,57 @@ Code debug made easier and more enjoyable.
12
12
13
13
== Description ==
14
14
15
+
Code debug made easier and more enjoyable. This WordPress plugin includes a suite of developer essential tools to debug your code:
15
16
16
-
= Handy Tools =
17
+
* [Whoops - the "PHP errors for cool kids"](http://filp.github.io/whoops/)
18
+
* [VarDumper from Symfony](https://symfony.com/doc/current/components/var_dumper.html)
19
+
* [Kint - a modern and powerful PHP debugging helper](https://kint-php.github.io/kint/)
20
+
* "DEBUG ACTIVE" indicator in the WordPress admin bar to let you know the plugin is activated.
17
21
18
-
Some handy tools just for the PHP Developer:
22
+
== Whoops - An Awesome PHP Error Tool ==
19
23
20
-
* `d( $var );` to render a collapsible UI container which displays your variable data in "the most informative way"
21
-
* `ddd( $var );` same as d() except that it also executes `die()` to halt execution.
24
+
The built-in PHP error container is basic and not as helpful as it could be. On top of that, it's rather ugly. Wouldn't you agree?
22
25
26
+
Whoops gives you a cool interface that is helpful, interactive, and quite nice to look at. Some features:
23
27
28
+
* Provides the error message and links to search Google, DuckDuckGo, and Stack Overflow.
29
+
* Shows the actual code where the error occurred.
30
+
* Provides an interactive call stack. Click each and the actual code appears in the viewer panel.
31
+
* Environment and details including GET Data, POST Data, Files, Cookie, Session, Server/Request Data, Environment Variables, and Registered Handlers.
32
+
33
+
== Handy Tools for Exploring Variable Values ==
34
+
35
+
This plugin provides two different tools for exploring the value in a variable:
36
+
37
+
* VarDumper from Symfony
38
+
* Kint
39
+
40
+
VarDumper provides a simple container that displays where you place it.
41
+
42
+
Kint gathers all the data and displayed it at the bottom of the screen as a fixed position container. It also provides a call stack, which can be handy, and tracing functionality if you need it.
43
+
44
+
= Which one should you use? =
45
+
46
+
It depends.
47
+
48
+
1. You want to simply display the contents of a variable: Use VarDumper's functions, i.e. `vdump()`, `vd()`, `vdd()`, or `vddd()`.
49
+
2. You want the call stack in addition to the variable: Use Kint's functions: `d()`, `dd()`, or `ddd()`.
0 commit comments