我的FirePHP模块似乎已停止工作.相反,我收到此错误消息:
["There was a problem wri...ePHP/FirebugConsole/0.1",
TypeError: node is undefined
[Break On This Error]
Filtered chrome url chrome://firebug/content/lib/domplate.js
domplate.js (line 515)
<System>
]
Run Code Online (Sandbox Code Playgroud)
我怀疑它与使用FirePHP for Chrome有关,但我已经删除了它没有任何乐趣!
如您所知var_dump(),除了显示其数据类型和长度.
有没有办法将其输出记录到FireBug控制台?
我尝试过FirePHP和FireLogger,但两者都只输出变量的值(有时甚至是不正确的变量值).
我一直在努力让FirePHP工作一小时.我安装了最新的firebug并且工作正常.我还安装了FirePHP插件.然后我下载了库文件并将它们包含在我的php文件中.我相信他们被包括在内.现在我用ob_start();声明启动了FirePHP .然后我尝试记录一些东西,fb('Log message', FirePHP::LOG);但没有出现在控制台上.我试过在Net Panel,Console窗口,All全部检查,尝试使用OOP方法等等,但没有任何工作.我可以看到标题发送得很好,但我看不到任何记录的消息.是什么赋予了?
再会。
我一直在研究包含许多变量和会话的项目,其中大部分工作是在“幕后”和通过 ajax 完成的。
问题是我尝试调试我的项目,但我找不到任何方法来跟踪和记录对某个变量所做的更改。
我一直在尝试使用 firephp 和 xdebug,但它们不显示何时对变量进行了更改,仅显示其最终值。
有什么解决办法吗?
我昨天在项目中使用了firephp.
将Firefox升级到版本23.0.1后,FireBug扩展会自动升级到版本1.12.0,我发现firephp不会在控制台中显示详细数据.
它仍然显示简要数据.我无法展开它看到细节.
我猜firebug改变了数据结构,firephp需要升级.
我正在尝试FirePHP.
我安装了它并重新启动了Firefox,为我的localhost启用了Firebug oo.php,将下载附带的演示文件移动到IIS虚拟目录中,更改了包含路径,apache_request_headers()从我运行IIS后删除了调用,我看到的唯一输出是
注意:未定义的偏移量:在第167行的C:\ Documents and Settings\georgem\My Documents\projects\auctronic\FirePHPCore\FirePHP.class.php中的1
Hello World
Firebug控制台中没有任何内容.
我错过了什么吗?
编辑: 注意到它说必须启用输出缓冲,所以我ob_start()在文件的顶部添加了一个调用...相同的结果.
我决定尝试使用Firefox Developer Edition.我正在为Joomla站点编写PHP代码,并使用Firebug和FirePHP将数据发送到控制台.
虽然使用标准的Firefox(36.0.4)工作正常,但我没有得到Developer Edition(38.0a2)的输出.
我错过了什么吗?应该可以吗?
我正在尝试使用composer将FirePHP添加到我的Zend Framework 2项目中,但是我收到了错误.
我的操作系统是Windows 7.
我尝试了以下方法使其工作:
我将以下代码添加到composer.json文件中:
"repositories": [{
"type": "vcs",
"url": "https://github.com/RobLoach/firephp-core"
}],
"require": {
"firephp/firephp-core": "dev-master" // Tried also: "firephp/firephp-core": "*"
}
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
[RuntimeException]
Failed to clone http://github.com/RobLoach/firephp-core.git, git was not found, check that it is installed and in your PATH env.
Run Code Online (Sandbox Code Playgroud)
我尝试在代码中添加到composer.json,这是我在firephp pull请求中找到的.:
"require": {
"firephp/firephp-core": "*"
}
Run Code Online (Sandbox Code Playgroud)
但它给了我上面发布的相同错误.作曲家对我来说是全新的.我找不到任何有用的教程,所以我不确定它是如何工作的,但我正在尽我所能熟悉它.
我希望有人可以告诉我我做错了什么.
谢谢.
编辑:感谢@Seldaek的帮助,我得到了它,但它删除了我的Zend库文件夹.
这是cmd的日志:
E:\xampp\htdocs\ZendSkeleton>php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing firephp/firephp-core (dev-master f60753a)
Cloning f60753a8dd7817e4da6bc73e0e717387a9a0866a
- Removing …Run Code Online (Sandbox Code Playgroud) 我安装了Firefox 3.6.15,Firebug和FirePHP插件,启用了控制台.我正在使用Zend 1.11.以下代码未在firebug控制台中显示任何内容.
<?php
require_once('Zend/Log.php');
require_once('Zend/Log/Writer/Firebug.php');
$writer = new Zend_Log_Writer_Firebug();
$logger = new Zend_Log($writer);
$logger->info('info message');
$logger->warn('warning message');
$logger->err('error message');
?>
Run Code Online (Sandbox Code Playgroud)
我尝试使用FirePHP核心库,这有效 -
<?php
require_once('FirePHPCore/FirePHP.class.php');
ob_start();
$firephp = FirePHP::getInstance(true);
$var = array('i'=>10, 'j'=>20);
$firephp->log($var, 'Iterators');
?>
Run Code Online (Sandbox Code Playgroud)
想让Zend的东西起作用.任何的想法?
你能建议如何在Symfony 2中将任何调试数据打印到浏览器控制台吗?特别是,可以用Symfony实现VarDumper Component吗?
在Zend Framework中,您可以使用工具Zend_Log_Writer_Firebug来执行此操作,这非常有用.Symfony的盒子里有这样的东西吗?