xdebug 中的配置参数用于允许远程计算机上的多个主机
我正在开发一个网络应用程序。该项目位于我的 linux box ie 服务器上。 我们正在从 Windows 远程访问这台机器。
我使用 xdebug 和 Eclipse PDT 进行调试。
xdebug 安装在我的服务器上。以下配置是在 php.ini 文件(位于服务器上)中设置的:
xdebug.remote_enable=1
xdebug.remote_host=10.88.36.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_log = /tmp/xdebug.log
在 php.ini 中为 xdebug 进行上述配置设置后,它只允许一台主机(即 10.88.36.1 )
我想允许多个主机。我知道在 zend 调试器中有一个配置参数选项可以执行此操作,即
zend_debugger.allow_hosts=10.88.36.28, 10.88.36.1
是否有 xdebug 的等效选项,以便我能够允许多个主机远程访问服务器?
I am working on one web application. The project located on my linux box i.e. server.
We are remotely accessing this machine from Windows.
I am using xdebug for debugging along with Eclipse PDT.
xdebug is installed on my server. The below configuration is set in the php.ini
file (which is located on the server):
xdebug.remote_enable=1
xdebug.remote_host=10.88.36.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_log = /tmp/xdebug.log
After doing the above configuration setting in php.ini for xdebug, it's allowing only one host ( i.e. 10.88.36.1)
I want to allow for multiple hosts. I know in zend debugger there is a configuration parameter option which does this i.e.
zend_debugger.allow_hosts=10.88.36.28, 10.88.36.1
Is there an equivalent option for xdebug so that i can able to allow multiple hosts to have access to server remotely?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此讨论建议使用“DBGp 代理”。链接的 PDF 给出了要查找的内容的总体思路。进一步的研究表明只有一种实现:Active State DBGp Proxy,它作为 Komodo 包的一部分进行分发。配置记录在此处。稍旧的版本单独提供。
This discussion suggests using a 'DBGp proxy'. The linked PDF gives a general idea of what to look for. Further research shows only one implementation: Active State DBGp Proxy which is distributed as part of the Komodo package. Configuration is documented here. A slightly older version is available separately.
我不确定这是否是解决您问题的完美解决方案,但我发现它会以这种方式接受多个主机:
虽然多个连接无法立即调试,但如果此处列出了一台机器,它应该能够连接。如果我错了,请纠正我,但据我所知,块定义不起作用(例如 10.88.36.0/24)。
来源:我胡搅蛮缠
I'm not sure if this is a perfect solution for your problem but I found that it will accept multiple hosts in this fashion:
Although multiple connections will not be able to debug at once, if a machine is listed here it should be able to connect. Also correct me if I'm wrong but block definitions do NOT work (ex. 10.88.36.0/24) as far as I can tell.
Source: me mucking around