Eclipse Helios 不会在断点处停止
我最近从 Eclipse Galileo 升级到 Helios。 Helios 仅在“作为 PHP 脚本”调试时才在断点处停止,但在“作为网页”调试时则不会。
当作为网页进行调试时,启动调试会话的正确调试查询字符串似乎被附加到 URL 上,如下所示:
http://localhost/hello.php?XDEBUG_SESSION_START=ECLIPSE_DBGP &KEY =129798139020511
但 elipse 不会在断点处停止。它只是缩放代码并在浏览器中显示输出。
这是我在 php.ini 中的 xdebug 配置,适用于 Galileo,但不适用于 Helios:(单击此处< /a> 查看我的整个 xdebug 配置设置)
;extension=xdebug.so <-- is this needed?
zend_extension=" /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-no n-zts-20090626/xdebug.so "
xdebug.remote_enable=on
xdebug.remote_autostart=off
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=
; to enable remote debugging
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.expose_remotely=always
您可以发布适用于 Helios 的 xdebug 配置吗?如果可能的话,您可以分享 phpinfo() 输出的 xdebug 部分吗?想要将适用于 Helios 的 xdebug 配置设置与我所拥有的设置进行比较。
I recently upgraded from Eclipse Galileo to Helios. Helios stops at breakpoints ONLY when debugging "as a PHP Script", but not when debugging "as a Web Page".
When debugging as a web page, it looks like the correct debug query string to start a debug session is getting tacked on to the url, like so:
http://localhost/hello.php?XDEBUG_SESSION_START=ECLIPSE_DBGP &KEY=129798139020511
but elipse does not stop at the breakpoints. It just zooms thru the code and displays the output in the browser.
This is my xdebug configuration in php.ini that works for Galileo, but is not working for Helios: (click here to see my entire xdebug config settings)
;extension=xdebug.so <-- is this needed?
zend_extension=" /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-no n-zts-20090626/xdebug.so "
xdebug.remote_enable=on
xdebug.remote_autostart=off
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=
; to enable remote debugging
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.expose_remotely=always
Can you post your xdebug configuration that works for Helios? If possible, can you share the xdebug portion of your phpinfo() output? Would like to compare settings of an xdebug configuration that works on Helios with what I have.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有完全相同的问题。我确实发现了一些关于 Galileo 中的断点无法在 Helios 中使用的错误报告。我有时可以让 Helios 在断点处停止,但我必须删除所有断点,然后开始调试,然后才添加断点。不用说,这非常烦人。我会尝试找到我看到的链接并将其添加到此处。
现在我回到伽利略。
马尔克斯。
I am having the exact same issue. I did find some bug reports about breakpoints in Galileo not being able to be used in Helios. I can get Helios to stop on breakpoints at times, but I have to delete all my breakpoints and then start debugging, and only after that add a breakpoint. Needless to say this is very annoying. I'll try and find the link that I saw and add it to here.
For now I've gone back to Galileo.
Malks.
我正在使用:
我通过禁用 IPV6 解决了此调试问题
编辑
/etc/sysctl.conf
并添加以下行:然后重新启动或
sudo sysctl -p
I'm using:
I solved this debugging problem disabling IPV6
Edit
/etc/sysctl.conf
and add the following lines:Then reboot or
sudo sysctl -p