Debian Squeeze 中的 xdebug.remote_connect_back 不起作用

发布于 2024-12-12 09:19:30 字数 733 浏览 5 评论 0原文

我正在尝试在运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文