XDEBUG 挂在虚拟托管域上
当我将常规 localhost/domain 与 xdebug 一起使用时,xdebug 工作正常。但是,我还在本地计算机上设置了虚拟主机,因此如果我使用 xdebug 并调用域。 test.domain.com。 xdebug 挂起。
我确实找到了可能是什么的线索。在我的 php.ini 文件中,如果我将 xdebug.remote_host=localhost 更改为 xdebug.remote_host=vhost_domain_name 。有用。所以我想问题是,我可以设置多个虚拟主机域供 xdebug 进行查找吗?
[编辑]
我道歉。我没有发布我的设置:P。没有意识到。
zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_output_dir="/tmp"
when I use the regular localhost/domain with xdebug, xdebug works fine. however, I also have virtual hosting set up on my local machine so if I use xdebug and call on the domain. test.domain.com. The xdebug hangs.
I did find a clue on what it maybe. in my php.ini
file, if I change xdebug.remote_host=localhost
to xdebug.remote_host=vhost_domain_name
. It works. so I guess the question is , can I setup multiple vhost domains for xdebug to look out for.
[EDIT]
I apologize. I didnt post my setting :P . Didnt realize it.
zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_output_dir="/tmp"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,您不能“为 xdebug 设置多个虚拟主机域以进行查找”,因为是 Xdebug 连接到您的 IDE,而不是相反。
xdebug.remote_host
值应该是运行 IDE 的计算机的主机名或 IP 地址。No, you can not "setup multiple vhost domains for xdebug to look out for" because it is Xdebug that connects to your IDE and not the other way around. The
xdebug.remote_host
value should be the hostname or IP address of the machine on which your IDE runs at.请参阅 xdebug.remote_connect_back
see xdebug.remote_connect_back