Php 如何使用FireHP在Firebug中显示信息
我正在尝试使用FireHP和firebug显示ajax调用中的一些信息。当ajax调用完成时,我能够显示一些信息。是否有一种在执行时显示的方法?例如,我在foreach循环中的id下面的代码Php 如何使用FireHP在Firebug中显示信息,php,firebug,firephp,Php,Firebug,Firephp,我正在尝试使用FireHP和firebug显示ajax调用中的一些信息。当ajax调用完成时,我能够显示一些信息。是否有一种在执行时显示的方法?例如,我在foreach循环中的id下面的代码 foreach ($this->PreQualcalls as $value) { ob_start(); if(isset($array ['env:Envelope'] ['env:Body']['n1:preQualResponse1207'])){ $t
foreach ($this->PreQualcalls as $value) {
ob_start();
if(isset($array ['env:Envelope'] ['env:Body']['n1:preQualResponse1207'])){
$this->setKeyNamePreQualResponse("n1:preQualResponse1207");
$this->setKeyNameServiceProducts("n1:ServiceProduct1207");
$this->setKeyNameModemProducts("n1:ModemProduct1207");
$this->firephp->log("entered the 1207 call");
}else{
$this->setKeyNamePreQualResponse("n1:preQual1308Response");
$this->setKeyNameServiceProducts("n1:ServiceProduct1308");
$this->setKeyNameModemProducts("n1:ModemProduct1308");
$this->firephp->log("entered the 1308 call");
}
ob_flush();
$this->firephp->log($this->getKeyNamePreQualResponse(),"Response type");
}
我希望能够在控制台中显示getKeyNamePreQualResponse(),因为它正在通过循环
可能吗
谢谢。FireHP设计用于在PHP脚本执行时收集日志信息,然后将其与页面响应一起以特殊标题发送。它不会实时显示Firebug中的日志调用 要使用日志调试代码,请将更多日志调用放入循环中。e、 g
$this->firephp->log("value", $value);
您有一个循环,在每次迭代时为$value
分配一个新值,但不在循环中的任何语句中使用它。这似乎不对
如果您需要实时调试,我建议使用xDebug或其他实时日志工具