24
           
            
                
     
    
    Quote:
I've been tring to do the following:
Assume you want to log a variable you just have to write the following:
$firephp->log($yourvariable);
I've followed the previous steps and have firephp console open, where do I see my variable?
Thanks
Hmm, my docs are a bit incomplete. First of all you have to activate "console" and "network" on the Firebug console. Logging your own variables in your modules need some extra.
I assume you have a header.php or anything like this getting included in every file you use?
Add the following code to your header.php:
 require_once XOOPS_ROOT_PATH.'/Frameworks/FirePHPCore/FirePHP.class.php'; 
$firephp = FirePHP::getInstance(true); 
$firephp->registerErrorHandler(false);  
Add this now to your file where you want the variable to be logged:
 $firephp->log($yourvariable);  
If used inside a function you have to add global $firephp; of course.
This should do the trick. You see the logs under the tab console.