Php 如何在win xp上运行xdebug

Php 如何在win xp上运行xdebug,php,apache,xdebug,Php,Apache,Xdebug,我在winxp上安装xdebug时没有什么问题。我将php信息的输出粘贴到xdebug页面的表单中,然后安装所需版本的dll库。问题是我无法连接到端口9000上的xdebug,因为端口9000上没有侦听(我是通过netstat-a命令找到它的)。有人能告诉我如何解决这个问题吗?谢谢 下面是我的phpinfo的输出: 您需要一个实际的调试器监听端口9000。例如,提供XDebug兼容性 需要在php.ini中调整以下内容: ; Enable remote connections xdebug.

我在winxp上安装xdebug时没有什么问题。我将php信息的输出粘贴到xdebug页面的表单中,然后安装所需版本的dll库。问题是我无法连接到端口9000上的xdebug,因为端口9000上没有侦听(我是通过netstat-a命令找到它的)。有人能告诉我如何解决这个问题吗?谢谢 下面是我的phpinfo的输出:


您需要一个实际的调试器监听端口9000。例如,提供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
每当启动PHP脚本时,这些设置将使
XDebug
连接到本地主机。如果设置正确*,Eclipse将询问您是否愿意接受调试连接


*请参阅上面链接中的教程,您将需要一个实际的调试器监听端口9000。例如,提供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
每当启动PHP脚本时,这些设置将使
XDebug
连接到本地主机。如果设置正确*,Eclipse将询问您是否愿意接受调试连接


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

我已准备好解决此问题。下面是我的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"

我已经准备好解决这个问题了。下面是我的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"