'val1', 'key2'=>array(array('v1','v2'),'v3')), 'TestArray',FirePHP::LOG); function test($Arg1) { throw new Exception('Test Exception'); } try { test(array('Hello'=>'World')); } catch(Exception $e) { /* Log exception including stack trace & variables */ fb($e); } fb('Backtrace to here',FirePHP::TRACE); fb(array('2 SQL queries took 0.06 seconds',array( array('SQL Statement','Time','Result'), array('SELECT * FROM Foo','0.02',array('row1','row2')), array('SELECT * FROM Bar','0.04',array('row1','row2')) )),FirePHP::TABLE); /* Will show only in "Server" tab for the request */ fb(apache_request_headers(),'RequestHeaders',FirePHP::DUMP); print 'Hello World';