Home Articles Development J!DUMP An invaluable tool

J!DUMP An invaluable tool

  previous next
March 07, 2010 by Victor    

J!Dump is the single best extension you need to make your Joomla coding experience more fun. Instead of using print_r() or var_dump(), you can now use dump() to see what's inside a variable, an array or object. This will open a popup window with a nice expandable DHTML tree, showing the contents of the variable. It will even show the list of the available methods of each object. You can use dump() in your extensions, in the core, in libraries or even in templates.

Anywhere in your code, just type:

 
dump( $variable, 'Variable Name' );

The variable name is optional and you can put in anything you like nevertheless if you are dumping too many variables, you'll definitely need some descriptive names.

To display a whole bunch of system information use:

 
dumpSysinfo();

If you need to test loop execution, use the backtrace option:

 
dumpTrace();

A really invaluable tool. Give it a go and you will love it. 'Congrats' to the developer.

Add comment


Security code
Refresh