FirePHP 不输出任何内容
我已经尝试让 FirePHP 工作一个小时了。我安装了最新的萤火虫并且工作正常。我还安装了 FirePHP 插件。然后我下载了库文件并将它们包含在我的 php 文件中。我确信他们被包括在内。现在我使用 ob_start();
语句启动 FirePHP。然后我尝试使用 fb('Log message', FirePHP::LOG);
记录一些内容,但控制台上没有显示任何内容。我尝试查看网络面板、控制台窗口,检查所有内容,尝试使用 OOP 方法等,但没有任何效果。我可以看到标头发送得很好,但看不到任何记录的消息。什么给?
I have been trying to get FirePHP to work for an hour now. I have the latest firebug installed and it works fine. I also installed the FirePHP addon. Then I downloaded the library files and included them in my php file. I am sure that they are being included. Now I started FirePHP with the ob_start();
statement. Then I tried logging something with fb('Log message', FirePHP::LOG);
but nothing showed up on the console. I have tried looking in the Net Panel, The Console window, had All checked, tried using the OOP method, etc. but nothing is working. I can see headers being sent just fine but I cannot see any logged messages. What gives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我多次遇到过同样的问题。以下“修复”之一过去对我有用。
I have had the same problem a number of times. One of the following 'fixes' worked for me in the past.
我也有同样的问题。按照安装演练中提到的方式安装了所有内容。
我使用的是 Symfony 2.2。首先,您必须知道,在使用该文件时,可以在以下位置找到 Symfony 插件: http: //www.symfony-project.org/plugins/sfFirePHPPlugin
查看自述文件以了解如何安装它。
其次,我的配置中的 Monolog 的 FirePHP 处理程序也遇到了问题,它在 Firefox 中对 FirePHP 附加组件进行窃听,从而阻止信息显示。我使用的配置是将所有信息级别错误发送到 config_dev 文件中的 FirePHP。从配置中删除后,以前的 FirePHP 事件开始显示在 Firefox 上的 FirePHP 插件中。
希望这对你们有帮助:)
I had the same problem. Installed everything as mentionned in the installation walkthrough.
I was using Symfony 2.2. First, you must know that when using the file there is a Symfony plugin that can be found at : http://www.symfony-project.org/plugins/sfFirePHPPlugin
look at the readme to know how to install it.
Second, I also had a problem with Monolog's FirePHP handler in my config where it was bugging FirePHP Add-On in Firefox thus preventing the information from showing. I used the configuration where all the Info level errors were sent to FirePHP in config_dev file. Once removed from the configs, the previous FirePHP events started showing in the FirePHP Add-On on Firefox.
Hope this helps a couple of you guys :)