Debug

debugConsole

debugConsole is a powerful debug system for PHP that maintains by Andreas Demmer. It's written completely in PHP and work as a class, not like Xdebug, which is an extension to PHP. With debugConsole, error handling and variable change tracking is taken care of.

debugConsole screenshot

Editor Comment:

If the native variable dump function in debugConsole are as good as dBug , this might be the tool of choice for all developers.

Dump Method

Dump Method is a variable dumping system like dBug, but instead dump PHP variables, it dump variables from JavaScript. Because dBug and Dump Method are both from one origin, ColdFusion , it looks similar.
Here is how it looks like

object
name [string] value
key [string] value
num [number] 3254325
obj [object]
object
bool [boolean] true
num [number] 1
func [function]
function
Arguments: none
Function: function(){alert('do stuff')}
nestedobj [object]
object
bool1 [boolean] false
aaa [number] 2
num [string] $huns
obj [object]
object
arr [array]
array
0 [string] a
1 [string] b
2 [string] c
3 [string] d
num [number] 3
word [string] shaun
empty array [array]
array [empty]
arr [array]
array
0 [number] 1123
1 [number] 232
2 [object]
object
auth [string] shaun b
empty object [object]
object [empty]
hash [array]
array
section1 [array]
array
0 [string] test1
1 [string] test2
section2 [array]
array
0 [string] test3
1 [string] test4
greetFunc [function]
function
Arguments: fn,sn
Function: function greet(fn,sn) {alert('Hi ' + fn + ' ' + sn);}

Editor Comment:

So now the most used Client and Server script both got the best out of ColdFusion, great...

dBug

dBug is a class for PHP programmers to output variables, object and even XML in a better looking way than var_dump. It uses great CSS and JavaScript to make the output easier to access, like expand an array. Here is an example of the output:

include("dBug.php");
$variable = array(
    "first"=>"1",
    "second",
    "third"=>array(
        "inner third 1",
        "inner third 2"=>"yeah"),
    "fourth");
 
new dBug($variable1);
Output:
array
first 1
0 second
third
array
0 inner third 1
inner third 2 yeah
1 fourth

Editor Comment:

I was using array2table and var_dump, print_r before I thought about making my own. Then I got to know dBug, so I know I don't have to make my own that will cost me over 20 hours.

Syndicate content
Honey Pot that kill bots