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.


[...] Editor Comment: If

[...] 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. [...]

Post new comment

The content of this field is kept private and will not be shown publicly.
If you have a Gravatar account, used to display your avatar.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <span> <fn>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.

More information about formatting options

What is 85 + 5?
To combat spam, please solve the math question above.
Honey Pot that kill bots