You must be a salesman, because you have a flashy website with a lot of cool one-liners that's supposed to explain everything. Take a deep breath and relax, you've already sold me or I wouldn't have spent all that time getting this things loaded.
Object Oriented API ?
future-proof your code ?
ad-hock debugging ?
"For detailed instructions see: "
http://www.firephp.org/HQ/Learn.htmWhat detailed instructions?
"Create a file at /www/Index.php and open it in your editor."
and put what in it?
require_once('FirePHPCore/FirePHP.class.php');
ob_start();
...and
$firephp = FirePHP::getInstance(true);
$var = array('i'=>10, 'j'=>20);
$firephp->log($var, 'Iterators');
???
And what do I do with this:
require_once('FirePHPCore/FirePHP.class.php');
$firephp = FirePHP::getInstance(true);
$firephp-> *
require_once('FirePHPCore/fb.php');
FB:: *
$firephp->setEnabled(false); // or FB::
FB::send(/* See fb() */);
this:
require_once('FirePHPCore/fb.php');
fb($var)
fb($var, 'Label')
fb($var, FirePHP::*)
fb($var, 'Label', FirePHP::*)
this:
// Defaults:
$options = array('maxObjectDepth' => 10,
'maxArrayDepth' => 20,
'useNativeJsonEncode' => true,
'includeLineNumbers' => true);
$firephp->getOptions();
$firephp->setOptions($options);
FB::setOptions($options);
$firephp->setObjectFilter('ClassName',
array('MemberName'));
this:
$firephp->registerErrorHandler(
$throwErrorExceptions=true);
$firephp->registerExceptionHandler();
$firephp->registerAssertionHandler(
$convertAssertionErrorsToExceptions=true,
$throwAssertionExceptions=false);
try {
throw new Exception('Test Exception');
} catch(Exception $e) {
$firephp->error($e); // or FB::
this:
$firephp->group('Test Group');
$firephp->log('Hello World');
$firephp->groupEnd();
$firephp->group($'Collapsed and Colored Group',
array('Collapsed' => true,
'Color' => '#FF00FF'));
this:
$firephp->log('Plain Message'); // or FB::
$firephp->info('Info Message'); // or FB::
$firephp->warn('Warn Message'); // or FB::
$firephp->error('Error Message'); // or FB::
$firephp->log('Message','Optional Label');
$firephp->fb('Message', FirePHP::*);
this:
$table = array();
$table[] = array('Col 1 Heading','Col 2 Heading');
$table[] = array('Row 1 Col 1','Row 1 Col 2');
$table[] = array('Row 2 Col 1','Row 2 Col 2');
$table[] = array('Row 3 Col 1','Row 3 Col 2');
$firephp->table('Table Label', $table); // or FB::
fb($table, 'Table Label', FirePHP::TABLE);
this:
$firephp->trace('Trace Label'); // or FB::
fb('Trace Label', FirePHP::TRACE);
and this:
$firephp->dump('Key', $variable); // or FB::
$firephp->fb($variable, 'Key', FirePHP::DUMP);
??? Put them in there too? Or do I have to pick one?
I been messing with this thing for hours and so far I can't get it to do a thing. Couldn't we have one simple file just to try it out and then we have the rest of our lives to become master php debuggers right ?
Where is the output supposed to show up anyway? On the "Server" tab that says "No FirePHP data found in response headers" ???
If the "Headers" tab, "User-Agent" contains "FirePHP/0.3" does that mean I at least have it installed?
This:
http://www.firephp.org/...is the only website I've been to where anything shows up on the Server tab, if that's even what's supposed to happen