【问题标题】:Eclipse stops at 57% when launching Xdebug debugging sessionEclipse 在启动 Xdebug 调试会话时停止在 57%
【发布时间】:2015-06-08 05:53:16
【问题描述】:

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

我检查了类似的问题:hereherehereherehereherehere

我有以下配置:

主机: 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 和主机

没有任何帮助。 :-(

【问题讨论】:

    标签: php eclipse ubuntu xdebug


    【解决方案1】:

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

    更新:

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

    【讨论】:

      猜你喜欢
      • 2013-04-13
      • 2014-01-10
      • 2018-07-23
      • 1970-01-01
      • 2012-03-12
      • 2013-06-13
      • 2021-11-01
      • 1970-01-01
      相关资源
      最近更新 更多