1
使用Eclipse和XDebug進行調試很長時間在我的工作站上正常工作,並突然停止。它凍結在57%說:「啓動:等待XDebug會話」。啓動Xdebug調試會話時Eclipse停止57%
我查了類似的問題:here,here,here,here,here,here和here。
我有以下配置:
主持人:的Ubuntu 14.10,Eclipse的月神
服務器:的CentOS 6.5,PHP 5.6.6和Apache 2.2.15運行的VM上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並啓用遠程主機
- 升級PHP(從5.5.4到5.6.6)
- 將端口從9000更改爲9001或9900
- 重啓主機,虛擬機/服務器和Eclipse
- check XDebug logs
- 開關VM的網絡設置NAT &主機僅
沒有什麼幫助。 :-(