zend 调试多个页面
我有一个非常简单的设置:
Apache 服务器、PHP 5.3、Eclipse、PHP Zend 调试模块
当我单击调试时,它会看到我的断点,一切正常。但仅限于第一页。如果我单击集成浏览器中的不同页面,则从该时刻开始的所有断点都将被忽略。我认为这与第一页的 URL 类似
http://localhost/schedule?start_debug=1&debug_host=127.0.0.1&send_sess_end=1&debug_session_id=1003&original_url=http%3A%2F%2Flocalhost%2Fschedule&debug_start_session=1&debug_no_cache=1303403971996&debug_port=10000
,而之后的页面没有附加这些 URL 调试参数这一事实有关。这是 Eclipse 中调试的限制吗?或者是否有某种方法可以将这些 GET 参数附加到我单击的每个链接? 也许是浏览器扩展?
在“高级”下查看我的调试配置,我发现我已选中“调试所有页面”。
I have a pretty simple setup:
Apache server, PHP 5.3, Eclipse, PHP Zend Debug Module
When I click on debug it sees my breakpoints and everything works fine. But only for the first page. If I click on a different page within the integrated browser, all breakpoints from that moment forward are ignored. I think it has to do with the fact that the first page's URL is something similar to
http://localhost/schedule?start_debug=1&debug_host=127.0.0.1&send_sess_end=1&debug_session_id=1003&original_url=http%3A%2F%2Flocalhost%2Fschedule&debug_start_session=1&debug_no_cache=1303403971996&debug_port=10000
Whereas pages after do not have these URL debug parameters appended. Is this a limitation with debugging in eclipse, or is there some way to append these GET parameters to every link I click? Perhaps a browser extension?
Looking under advanced for my debug configuration, I see that I have "Debug All Pages" checked.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近尝试了 Xdebug 扩展来完成同样的事情,我真的可以推荐它。
Xdebug 正是这样做的,并且还设置了一个包含调试会话信息的 Cookie,因此您可以浏览网站,并且调试器将在断点处停止。所以这绝对不是日食的问题。
您可以通过在 Firefox 中调用上述 URL 并检查是否设置了 cookie 来检查 Zend 调试模块是否执行相同的操作。
问候并祝你好运
I recently tried the Xdebug extension for the same thing, and i can really recommend it.
Xdebug does exactly this, and also sets a Cookie which contains the debug session info, so you can browse through the Website and the debugger will halt on a breakpoint. So it's definately not an eclipse issue.
You could check if the Zend Debug Module does the same thing by calling the above URL in Firefox and checking if a cookie was set.
Greetings and Good Luck