我下载了最新的 Xampp 版本(1.7.4),在 Windows XP 下安装它,禁用防火墙并根据 eclipse 安装说明配置 php.ini 和 eclipse。
当在 eclipse 内部和外部运行 phpinfo() 函数时,我看到 Xdebug 已加载,但是当我尝试在 eclipse 中运行调试模式时,它冻结在 57%(等待 xdebug 连接)。
在 xdebug 日志中我有:
Log opened at 2011-06-20 19:38:30
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/test/test.php" language="PHP" protocol_version="1.0" appid="2912" idekey="ECLIPSE_DBGP"><engine version="2.1.0rc1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2010 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
Log closed at 2011-06-20 19:38:34
我试图调试的文件名为 test.php。
你可以在这里查看我的 php.ini:http://sostudent.com/XAMPP%201.7.4.htm
您可以在此处查看 eclipse 配置的一些屏幕截图:
> http://sostudent.com/eclipse_servers.JPG
> http://sostudent.com/eclipse_executables.JPG
> http://sostudent.com/eclipse_debuggers.JPG
> http://sostudent.com/eclipse_debug.JPG
我的 xdebug 的 php.ini 配置如下:
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension ="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=10000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.remote_log="C:\xampp\apache\error\xdebug.log"
有人可以帮忙吗?我无法理解这个...
Thanks!!
通过将我使用的端口更改为 9005 解决了我的问题。9000 和 10000 都不起作用,但我不知道为什么。
无论如何现在一切都好!!
Thanks
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)