How to configure FirePHP with Magento to log response headers, dump objects to the browser console?

How to utilize FirePHP to reduce debugging time?

2 Answers 2


we developed a small debugging suite for Magento which includes besides showing rewrite conflicts, a log file viewer, etc.. in the backend also integrations for FirePHP, ChromePHP and Firelogger.

You can find the extension here: https://github.com/firegento/firegento-debug

Once installed and activated in the system configuration, you can log your data for FirePHP like this:


Since Magento comes with the Zend Framework bundled you can use Zend_Log_Writer_Firebug. One of the examples on ZF documentation shows how to use it


=> To not repeat yourself you can wrap this into your helper class


class Fooman_Common_Helper_Debug extends Mage_Core_Helper_Abstract {
     * send to Firebug
     * @param $content
    public function sendToFirebug($content) {
        $writer = new Zend_Log_Writer_Firebug();
        $logger = new Zend_Log($writer);

        $request = new Zend_Controller_Request_Http();
        $response = new Zend_Controller_Response_Http();
        $channel = Zend_Wildfire_Channel_HttpHeaders::getInstance();

        // Start output buffering

        // Now you can make calls to the logger

        $logger->log($content, Zend_Log::INFO);

        // Flush log data to browser

=> and then every time you want to send something to the firephp console use it


The actual response headers that are sent would be viewable on the net tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.