Debian Squeeze 中的 xdebug.remote_connect_back 不起作用
我正在尝试在运行 Debian squeeze 的服务器上设置远程调试。 我通过在 xdebug-config 中设置主机的 IP 来使其工作。但我想启用来自所有主机的调试会话。这应该可以通过设置
xdebug.remote_connect_back=on
但是如果我添加该行,调试器将不再连接回来(尝试使用 Netbeans)。 Debian Squeeze (2.1.0-1) 附带的 xdebug 应该支持这一点。
这是我的 /etc/php5/conf.d/xdebug.ini:
zend_extension=/usr/lib/php5/20090626/xdebug.so
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
; overrides the host setting, but seems to not work
; xdebug.remote_connect_back=on
xdebug.remote_host=192.168.23.22
xdebug.remote_port=9000
这样就可以了。如果 xdebug.remote_connect_back=on 未注释,它将停止工作。为什么?
I'm trying to setup remote debugging on my server running Debian squeeze.
I got it working by setting the IP of the host in xdebug-config. But I want to enable debug sessions from all hosts. This should be possible by setting
xdebug.remote_connect_back=on
However if I add that line, the debugger doesn't connect back anymore (trying with Netbeans). This should be supported by the xdebug coming with Debian Squeeze (2.1.0-1).
That's my /etc/php5/conf.d/xdebug.ini:
zend_extension=/usr/lib/php5/20090626/xdebug.so
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
; overrides the host setting, but seems to not work
; xdebug.remote_connect_back=on
xdebug.remote_host=192.168.23.22
xdebug.remote_port=9000
That way it works. If xdebug.remote_connect_back=on is uncommented it stops working. Why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论