Zend framework 调用_redirect时Firebug中没有输出

Zend framework 调用_redirect时Firebug中没有输出,zend-framework,firebug,Zend Framework,Firebug,代码(摘自): 显然,如果我使用\u redirect(),则不会显示所有消息,但是,如果我使用 $this->getResponse()->setHeader('Refresh', '0; URL=/login/success'); 它会起作用的。所以我的问题是: 我应该怎么做才能确保这些消息出现在我的Firebug控制台中(使用\u redirect())? 更新1: 在Net选项卡中,我可以看到消息在标题中,但它没有出现在我的Firebug中 Date Wed, 08

代码(摘自):

显然,如果我使用
\u redirect()
,则不会显示所有消息,但是,如果我使用

$this->getResponse()->setHeader('Refresh', '0; URL=/login/success');
它会起作用的。所以我的问题是:

我应该怎么做才能确保这些消息出现在我的Firebug控制台中(使用
\u redirect()
)?

更新1:

在Net选项卡中,我可以看到消息在标题中,但它没有出现在我的Firebug中

Date    Wed, 08 Dec 2010 03:42:15 GMT 
Server  Apache/2.2.16 (Unix) DAV/2 PHP/5.3.3 
X-Powered-By    PHP/5.3.3 
Expires Thu, 19 Nov 1981 08:52:00 GMT 
Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-check=0 
Pragma  no-cache 
X-Wf-Protocol-1 http://meta.wildfirehq.org/Protocol/JsonStream/0.2 
X-Wf-1-Structure-1  http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1 
X-Wf-1-Plugin-1 http://meta.firephp.org/Wildfire/Plugin/ZendFramework/FirePHP/1.6.2 
X-Wf-1-1-1-1    156|[{"Type":"INFO","File":"\/home\/foo\/workspace\/php\/identiti\/application\/modules\/default\/controllers\/LoginController.php","Line":64},"info message"]| 
X-Wf-1-1-1-2    159|[{"Type":"WARN","File":"\/home\/foo\/workspace\/php\/identiti\/application\/modules\/default\/controllers\/LoginController.php","Line":65},"warning message"]| 
X-Wf-1-1-1-3    158|[{"Type":"ERROR","File":"\/home\/foo\/workspace\/php\/identiti\/application\/modules\/default\/controllers\/LoginController.php","Line":66},"error message"]| 
Location    /login/success 
Content-Length  0 
Keep-Alive  timeout=5, max=100 
Connection  Keep-Alive 
Content-Type    text/html
更新2:

很明显,这是一个bug,在中确认。在我回答这个问题之前,我会等到有一个真正的解决办法

感谢您提供详细的测试用例。 这是FireHP Companion中的一个bug

正在进行修复。我会让你知道的 完成后(预计星期五)

谢谢!克里斯托夫

启用Firebug控制台选项卡中的“持久化”选项是否有帮助?

这是作者本人的建议:

我有好消息和坏消息。FireHP 1.0+FireHP Companion现在可以在重定向过程中进行日志记录。直到明年初,它才能用于原生Zend框架实现

要获得有效的解决方案,请升级到FireHP 1.0:

另见:

重定向期间的日志记录说明:

信息

我建议使用FireHP 1.0库作为ZF组件的补充或替代。这将在明年初得到很大改善


请让我知道,如果你得到这个工作

以前试过,但没用,因为没什么好学的persist@foo默认情况下,console和net选项卡在每个请求开始时清除。当重定向告诉客户端发出另一个请求时,通常会丢失控制台中可能存在的任何内容。启用persist选项会阻止控制台清除。我确实理解这一点,但问题是,即使在重定向过程开始之前,Firebug控制台中也没有任何内容,但是,当我使用setHeader重定向时,它会起作用。它仍在被重定向,但这次控制台中显示的消息(启用了持久化选项)是动作控制器上下文中的
$this
Date    Wed, 08 Dec 2010 03:42:15 GMT 
Server  Apache/2.2.16 (Unix) DAV/2 PHP/5.3.3 
X-Powered-By    PHP/5.3.3 
Expires Thu, 19 Nov 1981 08:52:00 GMT 
Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-check=0 
Pragma  no-cache 
X-Wf-Protocol-1 http://meta.wildfirehq.org/Protocol/JsonStream/0.2 
X-Wf-1-Structure-1  http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1 
X-Wf-1-Plugin-1 http://meta.firephp.org/Wildfire/Plugin/ZendFramework/FirePHP/1.6.2 
X-Wf-1-1-1-1    156|[{"Type":"INFO","File":"\/home\/foo\/workspace\/php\/identiti\/application\/modules\/default\/controllers\/LoginController.php","Line":64},"info message"]| 
X-Wf-1-1-1-2    159|[{"Type":"WARN","File":"\/home\/foo\/workspace\/php\/identiti\/application\/modules\/default\/controllers\/LoginController.php","Line":65},"warning message"]| 
X-Wf-1-1-1-3    158|[{"Type":"ERROR","File":"\/home\/foo\/workspace\/php\/identiti\/application\/modules\/default\/controllers\/LoginController.php","Line":66},"error message"]| 
Location    /login/success 
Content-Length  0 
Keep-Alive  timeout=5, max=100 
Connection  Keep-Alive 
Content-Type    text/html