【发布时间】:2015-06-08 05:53:16
【问题描述】:
使用 Eclipse 和 XDebug 进行调试在我的工作站上运行了很长时间,但突然停止了。它冻结在 57% 时说:“正在启动:等待 XDebug 会话”。
我检查了类似的问题:here、here、here、here、here、here 和 here。
我有以下配置:
主机: Ubuntu 14.10,Eclipse Luna
服务器: CentOS 6.5 与 PHP 5.6.6 和 Apache 2.2.15 作为虚拟机在 VitualBox 上以网桥模式运行
Eclipse 中的 XDebug 设置
XDebug 服务器配置(/etc/php.d/15-xdebug.ini):
; Enable xdebug extension module
zend_extension=xdebug.so
; see http://xdebug.org/docs/all_settings
xdebug.remote_enable = On
xdebug.remote_mode = req
;xdebug.remote_host = 192.168.100.4
xdebug.remote_connect_back = On
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.remote_autostart = Off
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.profiler_enable = Off
xdebug.profiler_output_dir = /media/sf_proofhq/web2/log/profiler
xdebug.profiler_output_name = %s%R.cachegrind
xdebug.max_nesting_level = 1000
我尝试了以下方法:
- 禁用 remote_connect_back 并启用 remote_host
- 升级 PHP(从 5.5.4 到 5.6.6)
- 将端口从 9000 更改为 9001 或 9900
- 重启主机、VM/服务器和 Eclipse
- check XDebug logs
- 将 VM 网络设置切换为仅 NAT 和主机
没有任何帮助。 :-(
【问题讨论】: