我下载了最新的Xampp版本(1.7.4),在windows XP下安装,禁用防火墙,按照eclipse安装说明配置php.ini和eclipse.
I downloaded the latest Xampp version (1.7.4), installed it under windows XP, disabled the firewall and configured both php.ini and eclipse acording to eclipse installing instructions.
在 eclipse 内部和外部运行 phpinfo() 函数时,我看到 Xdebug 已加载,但是当我尝试在 eclipse 中运行调试模式时,它冻结在 57%(等待 xdebug 连接).
When running phpinfo() function both inside and outside eclipse I see Xdebug loaded but when I try to run debug mode in eclipse it freezes at 57% (waiting for xdebug connection).
在 xdebug 日志中我有:
In xdebug log I have:
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.
The file i was trying to debug is called test.php.
你可以在这里查看我的 php.ini:http://sostudent.com/XAMPP%201.7.4.htm
You can view my php.ini here: http://sostudent.com/XAMPP%201.7.4.htm
你可以在这里查看一些eclipse配置的截图:
You can view some screenshots of eclipse config here:
> 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 配置如下:
My php.ini config for xdebug is as follows:
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension ="C:xamppphpextphp_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 mp"
xdebug.remote_log="C:xamppapacheerrorxdebug.log"
有人可以帮忙吗?我无法理解这个......
Can someone help?? I can't make sense of this...
谢谢!!
通过将我使用的端口更改为 9005 解决了我的问题.9000 和 10000 都不起作用,但我不知道为什么.
Solved my problem by changing the port I was using to 9005. 9000 didn't work neither 10000 but I don't know why.
反正现在一切都好!!
谢谢
这篇关于xampp 1.7.4 + winxp + 日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!