Eclipse PDT - 无法开始 PHP 调试 - 卡在 78%

Eclipse PDT - Unable to begin PHP Debugging - Stuck at 78%

我似乎无法在 Eclipse 中获取 PHP 调试器工具来启动调试会话。

我用来配置调试的设置如下。

此外,我已将 xdebug 的端口更改为 19000,zend 调试器的端口更改为 30000

php.ini

; XDEBUG Extension

zend_extension=c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll

[xdebug]
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=19000
xdebug.remote_handler="dbgp"

1) 单击 运行 -> 调试配置 -> 服务器选项卡

2) 单击 运行 -> 调试配置 -> 调试器设置

3) 单击 Window -> 首选项 -> 单击 PHP 在 Window 左侧扩展的过滤器 -> 安装的调试器 -> XDebug

4) 单击 Window -> 首选项 -> 单击 PHP 在 Window 左侧扩展的过滤器 -> 安装的调试器 -> XDebug

5) 单击 运行 -> 调试配置 -> 服务器调试器下拉菜单 -> Zend 调试器设置

我遇到了同样的问题,问题是我移动了我的 Firefox 安装文件夹。 检查您在 Window->首选项->常规->Web 浏览器中设置的浏览器。 如果您使用的是外部浏览器,请单击它,然后单击“编辑”并检查浏览器路径是否正确。

感谢 zulus 和 axxis 的评论!

这里是实现解析的步骤。

1) 转到 http://xdebug.org/wizard.php

2) 在您的网络服务器脚本中构建以下 phpinfo,并 运行 直接在浏览器中构建它。

<?php
    phpinfo();
?>

3) 突出显示整个页面或按 (ctrl + a) html 页面的内容( 不是页面 html 源代码 )进入步骤 1 中引用的页面。

4) 最后的屏幕截图显示了要下载的文件(用大箭头指向)和路径(用矩形包围)。

将下载的php_xdebug-2.3.2-5.5-vc11-x86_64.dll文件放入1)和不是 2).

1) C:\wamp\bin\php\php5.5.12\ext

2) C:\wamp\bin\php\php5.5.12\zend_ext

对我来说,

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=< hostname >
xdebug.remote_port=< port >
xdebug.remote_handler="dbgp"
zend_extension_ts=< xdebug library location >

这有效,插入到特定的虚拟站点 php.ini,而不是 /etc/php.ini。 帮助方法:this

< hostname > the ip of the machine running the IDE

对我来说,将其他人建议的 [xdebug] 配置添加到路径 C:\wamp64\bin\apache\apache2.4.[ 中保存的 php.ini 文件中=27=] 有帮助。从本质上讲,它是一个符号 link,points/links 到 phpForApache.ini 文件在您各自的 php 版本文件夹下,与 wamp64 一起安装,例如php5.6.25.

简而言之,将以下行添加到 phpForApache.ini 以帮助我 -

zend_extension = c:\wamp64\bin\php\php5.6.25\ext\php_xdebug-2.5.1-5.6-vc11-x86_64.dll
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

希望对您有所帮助