Magento FirePHP extension
17 Comments 20th FEB 2010 | Posted by Ivan Weiler in Magento

FirePHP is Firefox add-on that enables you to log to your Firebug Console, which makes it great debugging tool for any web developer. I’m using it, like it and can’t live without it for some time now
So here’s nicely packed Magento FirePHP extension, I believe you’ll be seeing it at Magento Connect in a while.
You can get it via file: magento-firephp-0.3.zip or even better, use Magento FirePHP Extension on Magento Connect.
Since FirePHP is implemented in Zend Framework it’s really easy to use it with Magento, my friend Branko wrote about it before.
Download FirePHP from its homepage www.firephp.org. You must have Firebug installed and the “Net” panel enabled to use it, and Firefox of course.
Extension needs to be enabled through Magento configuration and respects Allowed IPs option if used, which is great for tracing problems on live sites:
System->Configuration->Developer->Debug->FirePHP
System->Configuration->Developer->Developer Client Restrictions->Allowed IPs
After you enable FirePHP in Magento configuration you can start using it simple as
Mage::helper(‘firephp’)->send(‘Lorem ipsum sit amet ..’);
Mage::helper(‘firephp’)->debug(Mage::getModel(‘catalog/product’)->load(54));
Send function sends whatever you throw in it, while debug checks for Varien_Object instance and sends Varien_Object->debug() to console. If you’re dumping usual Magento objects, be sure to use debug.
We’re looking forward new FirePHP 1.0 announced for this year !!
Updated
0.0.3 – license change, Magento Connect release
0.0.2 – fixed compatibility problem in 1.3.2.x versions
0.0.1 – initial release
To post code in comments, place your code inside [code] and [/code] tags.



















February 22nd, 2010 at 5:11
I gotta say this man. if anyone owes or develops magento stores, then it is a must-see for him/her to visit your blog.
February 22nd, 2010 at 9:36
Hi,
I think the same, FirePHP is fantastic, a great tool for any web developer.
I’d like to use your extension but I get the error: “Response objects not initialized” Could you help me? thanks!
February 22nd, 2010 at 13:10
Thanks for this post. However, I’m also having the same problem – “Response objects not initialized”
February 22nd, 2010 at 16:43
@evuska,Alan M: Could you please check and comment on which Magento versions are you getting this error and from where (which file) are you calling Mage::helper(‘firephp’).
I wrote this extension some time ago and I’ve been using it on all newer 1.3 versions, 1.4 version and even on last two Enterprise versions.
Older versions won’t be supported, but I’ll correct all errors
Thanks
February 22nd, 2010 at 16:57
Magento CE 1.3.2.4
I just called it randomly in a custom .phtml file that calls in new products to a sidebar in order to test it.
February 22nd, 2010 at 19:17
I just updated to v.0.0.2. There shouldn’t be any problems in 1.3.2.x versions anymore.
Thanks for the feedback !! Keep it coming
February 22nd, 2010 at 19:23
Cool – that’s great. Works like a charm
February 23rd, 2010 at 17:03
Thankssssss!!
now it works right!!
February 24th, 2010 at 11:09
+1
“Response objects not initialized”
So ?
February 26th, 2010 at 12:25
Congratulations Ivan! I took a liberty and updated this post a little where I put a direct link to Magento Connect.
Magento FirePHP Extension
March 2nd, 2010 at 15:19
Great extension
March 3rd, 2010 at 15:14
Hello,
I tried to install, strictly followed this tutorial. But when I put a :
debug(‘Lorem ipsum sit amet ..’); ?>
somewhere into my .phtml file (firephp enabled in admin). It doesn’t work.
The only thing I didn’t do is the “Net Panel”, I don’t know what it is and I don’t know where to download it.
Can you help me please ?
March 8th, 2010 at 23:49
hello,
I am new to this but still tried to use firephp with magento but no success it would be great if you can make a step by step tutorial, that will be very helpful
Thanks Alot
April 20th, 2010 at 18:10
Awesome extension. Love your work Ivan.
May 13th, 2010 at 19:21
THIS IS A GREAT PLUGIN! However, every time I try to look at a Varien object in Magento (when I call $this) Firefox stops responding and crashes with it saying that the javascript isn’t responding. I am running Magento 1.3.3 and the latest version of this plugin.
Thanks for all your hard work!
May 13th, 2010 at 19:59
FYI this only happens when I try to pull up the object in the full array viewer NOT when I look at it in the console
June 10th, 2010 at 9:03
I found that the extension can not run properly in observer class