Cool Tool: J!Dump

I just found another gem.
Remember how I was running around in circles trying to get my Joomla! OS Membership Pro Paystack payment plugin code to work? Well something drove me to ask my best friend Google about debugging, and I hit the jackpot.
Joomla! has documentation on how to debug your code at their JoomlaDocs.
I tried out the Joomla! Debug console, but it was not doing what I needed done: dump out variable values for me to see. Eventually I tried the J!Dump option in the list, and I fell in love.

J!Dump will allow you to dump variable, stack traces, and system information into a popup window at run time. This extension works like the PHP command `var_dump` but formats the output in a much more readable fashion. On the github page, the README says:

This utility makes life easy for developers and template designers. You use it to see what’s inside a variable, an array or an object. Instead of using print_r() or var_dump(), you can now use dump(). This will open a popup window with a nice expandable tree, showing the contents of the variable. It will even show a list of available methods for each object. You have to see it to believe it! You can use dump() in your extensions, in the core, in libraries and even in templates.

It has certainly made my life easier since I installed it.
It works with Joomla! 3.x and PHP 7.x which is what I have set up on my server. I’m yet to test it on Laragon, but I bet it would work.

Thank you to the seven contributors to this free open source project!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s