启动Xdebug调试会话时,Eclipse停止在57%

时间:2015-04-03 06:15:20

标签: php eclipse ubuntu xdebug

使用Eclipse和XDebug进行调试已经在我的工作站上运行了很长时间并突然停止了。它冻结了57%的人说:“启动:等待XDebug会议”。

我检查了类似的问题:hereherehereherehereherehere

我有以下配置:

主持人: Ubuntu 14.10,Eclipse Luna

服务器:在网络桥接模式下,在VitualBox上作为VM运行的PHP 5.6.6和Apache 2.2.15的CentOS 6.5

Eclipse中的XDebug设置

XDebug settings in Eclipse

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&仅限主持人

没有任何帮助。 : - (

1 个答案:

答案 0 :(得分:0)

我找到了一种解决方法:创建一个新的虚拟主机和新的Eclipse工作区。

更新:

如果Eclipse在第一行保持中断,则执行this

相关问题