【发布时间】:2012-02-23 15:55:00
【问题描述】:
当我将常规 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"
【问题讨论】:
-
这个相关问题可能会有所帮助:stackoverflow.com/questions/6165360/…
标签: php cakephp netbeans xdebug