到firefox的Add-ons中下载。
运行环境:firefox,firebox。要求先安装firebug。并且启动net。enable net。
使用方法:
导入类库
require_once('FirePHPCore/FirePHP.class.php');
function index()
{
$fb = FirePHP::getInstance(true);
$a = "test";
$array = array("a" => "1", "b" => "2");
//$this->firephp->log($a, 'ERROR');
//$this->firephp->log($a, 'ERROR');
$fb->setEnabled(true);
$fb->info($array, "info");
$fb->warn($array, "warn");
$fb->error($array, "error");
$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');
$fb->table('Table Label', $table); // or FB::
$fb->trace('Trace Label');
//fb($table, 'Table Label', FirePHP::TABLE);
}存在一个bug:调用group()会报错。这是firephp的bug。bug描述:
https://groups.google.com/forum/#!topic/devcomp/n_o_uJW7LH4
最佳答案