我正在尝试安装 xdebug,但在 eclipse 上收到以下错误消息:
launching: waiting for xdebug Session
加载到 57% 时停止。
使用 NetBeans,我得到:
waiting for xdebug Session
所以我认为问题出在 CentOS 上的 xdebug 配置
我的php.ini
配置:
zend_extension = /usr/lib64/php/modules/xdebug.so
[debug]
; Remote settings
xdebug.remote_enable=true
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
phpinfo()
显示已安装的 xdebug。
我的centOS版本是6.2。
感谢任何帮助。
最佳答案
我刚刚在 Centos 6.3 计算机上安装了 NetBeans 7.2.1 和 xdebug 2.1.4,并在 NetBeans 中收到“正在等待 xdebug session ”消息。在搞乱了 php 设置并确认 phpinfo() 中的 xdebug 正确性数小时后无济于事后,我的解决方案是在 NetBeans 中设置默认浏览器...工具 -> 选项 -> Web 浏览器。将其设置为 Firefox 即可解决!希望这对其他人有帮助...
关于php - xdebug 和 CentOS 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10155853/