FirePHP 不在控制台中显示某些日志
FirePHP does not show some logs in console
我想在 Firebug Console 中使用 FirePHP.
输出一个简单的字符串
我在index.php中有一个简单的测试:
require_once('../system/lib/FirePHPCore/FirePHP.class.php');
$firephp = FirePHP::getInstance(true);
$var = array('i'=>10, 'j'=>20);
$firephp->log($var, 'Iterators');
然后我登录控制台:
但是当我在另一个文件中添加一些额外的 firephp 日志时 b_product_settings.php
class prdsetActions extends ActionsController {
function save_product(){
global $firephp;
$firephp->log('save_product_started11');
...
}
...
}
并从 index.php 调用 save_product(),然后我只看到第一个日志字符串 控制台选项卡
和 X-Wf-1-1-1- 在 Net 选项卡
中的两个字符串
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection keep-alive
Content-Type text/html; charset=UTF-8
Date Thu, 19 Feb 2015 13:16:25 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Last-Modified Thu, 19 Feb 2015 13:16:25GMT
Location /published/SC/html/scripts/index.php?ukey=product_settings&productID=1&search=yes&did=109&msg=9uzr
P3P CP="CAO PSA OUR"
Pragma no-cache
Server nginx/1.2.1
Transfer-Encoding chunked
X-Wf-1-1-1-1 165|[{"Type":"LOG","Label":"Iterators","File":"\/var\/www\/site.com\/published\/SC\/html\/scripts\/index.php","Line":"19"},{"i":"10","j":"20"}]|
X-Wf-1-1-1-2 191|[{"Type":"LOG","File":"\/var\/www\/site.com\/published\/SC\/html\/scripts\/modules\/products\/_methods\/b_product_settings.php","Line":"9"},"save_product_started11"]|
X-Wf-1-Index 2
X-Wf-1-Plugin-1 http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3
X-Wf-1-Structure-1 http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1
X-Wf-Protocol-1 http://meta.wildfirehq.org/Protocol/JsonStream/0.2
为什么第二个 firephp 日志不在 Console 选项卡中?任何建议,请。我陷入了僵局。
- 火灾PHP 0.7.4
- Firebug 2.0.8
- 火狐 35.0.1
- PHP 5.5.21
- php.ini: output_buffering 4096
- ZendOpcache 7.0.4
这个错误随着 Firefox 更新到 37.0 而消失
我想在 Firebug Console 中使用 FirePHP.
输出一个简单的字符串我在index.php中有一个简单的测试:
require_once('../system/lib/FirePHPCore/FirePHP.class.php');
$firephp = FirePHP::getInstance(true);
$var = array('i'=>10, 'j'=>20);
$firephp->log($var, 'Iterators');
然后我登录控制台:
但是当我在另一个文件中添加一些额外的 firephp 日志时 b_product_settings.php
class prdsetActions extends ActionsController {
function save_product(){
global $firephp;
$firephp->log('save_product_started11');
...
}
...
}
并从 index.php 调用 save_product(),然后我只看到第一个日志字符串 控制台选项卡
和 X-Wf-1-1-1- 在 Net 选项卡
中的两个字符串Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection keep-alive
Content-Type text/html; charset=UTF-8
Date Thu, 19 Feb 2015 13:16:25 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Last-Modified Thu, 19 Feb 2015 13:16:25GMT
Location /published/SC/html/scripts/index.php?ukey=product_settings&productID=1&search=yes&did=109&msg=9uzr
P3P CP="CAO PSA OUR"
Pragma no-cache
Server nginx/1.2.1
Transfer-Encoding chunked
X-Wf-1-1-1-1 165|[{"Type":"LOG","Label":"Iterators","File":"\/var\/www\/site.com\/published\/SC\/html\/scripts\/index.php","Line":"19"},{"i":"10","j":"20"}]|
X-Wf-1-1-1-2 191|[{"Type":"LOG","File":"\/var\/www\/site.com\/published\/SC\/html\/scripts\/modules\/products\/_methods\/b_product_settings.php","Line":"9"},"save_product_started11"]|
X-Wf-1-Index 2
X-Wf-1-Plugin-1 http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3
X-Wf-1-Structure-1 http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1
X-Wf-Protocol-1 http://meta.wildfirehq.org/Protocol/JsonStream/0.2
为什么第二个 firephp 日志不在 Console 选项卡中?任何建议,请。我陷入了僵局。
- 火灾PHP 0.7.4
- Firebug 2.0.8
- 火狐 35.0.1
- PHP 5.5.21
- php.ini: output_buffering 4096
- ZendOpcache 7.0.4
这个错误随着 Firefox 更新到 37.0 而消失