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.


Comments

Anonymous's picture

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

  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <span> <fn>
  • Lines and paragraphs break automatically.
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Mathematical equations and graphs can be added between [tex] and [/tex], [graph] and [/graph] tags.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
          _   ____           ____    _     
_ __ (_) | _ \ ___ | __ ) | |
| '_ \ | | | |_) | / _ \ | _ \ | |
| |_) | | | | __/ | __/ | |_) | | |___
| .__/ |_| |_| \___| |____/ |_____|
|_|
Enter the code depicted in ASCII art style.
Honey Pot that kill bots