xampp 1.7.4 + winxp + eclipse [英] xampp 1.7.4 + winxp + eclipse
问题描述
我下载了最新的Xampp版本(1.7.4),将其安装在Windows XP下,禁用了防火墙,并配置了php.ini和eclipse,支持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
我的php.ini配置为xdebug如下:
My php.ini config for xdebug is as follows:
[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"
可以有人帮忙?我不能理解这个...
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 + eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!