2012-04-02 91 views
0

我在winxp上安装xdebug时没有问题。我将输出从PHP信息粘贴到xdebug页面的表单上,然后安装所需的版本或DLL库。问题是我无法连接到端口9000上的xdebug,因为没有任何监听端口9000(我通过netstat -a命令找到它)。有人可以给我点如何解决这个问题?谢谢。 这里是我的phpinfo输出:如何在win xp上运行xdebug

http://pastebin.com/472SaQKv

回答

0

我已经解决了这个问题。这里是我的php.ini中的配置,它运行!

zend_extension="C:\Program Files\Apache Software Foundation\Apache2.2\php\ext\php_xdebug-2.1.3-5.3-vc9.dll" 

[xdebug] 
xdebug.remote_enable=ON 
xdebug.remote_handler=dbgp 
xdebug.remote_host=127.0.0.1 
xdebug.remote_autostart = 1 
xdebug.remote_port=9000 
xdebug.idekey="netbeans-xdebug" 
xdebug.remote_connect_back=ON 
xdebug.remote_log="C:\Program Files\Apache Software Foundation\Apache2.2\logs\xdebug.log" 

xdebug.profiler_enable = 1 
xdebug.profiler_output_name = cachegrind.out.%t.%p 
xdebug.profiler_output_dir = "C:/Windows/Temp/xdebug" 
xdebug.trace_output_dir = "C:/Windows/Temp/xdebug" 
3

你需要一个实际的调试器监听端口号为9000 Eclipse PDT提供XDebug的兼容性,例如。

下需要在php.ini进行调整:

; Enable remote connections 
xdebug.remote_enable = On 

; Automatically connect when PHP script starts 
xdebug.remote_autostart = 1 

; IP adress to connect *to* 
; (adjust accordingly) 
xdebug.remote_host = 127.0.0.1 

这些设置将XDebug连接到localhost每当PHP脚本启动。如果设置正确*,Eclipse会询问您是否要接受调试连接。

*请参阅上面链接中的教程

相关问题