无法让Xdebug在Windows 7上运行

Der*_*rek 6 php apache xampp xdebug windows-7

我安装了最新的XAMPP软件包,其中包括PHP 5.3.0.我正在尝试启用Xdebug,但它不起作用.

这是我在XAMPP附带的php.ini中更改的内容:

; uncommented
zend_extension = "X:\xampp\php\ext\php_xdebug.dll"

; added the following lines:
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
Run Code Online (Sandbox Code Playgroud)

Apache启动正常,但是当我http://localhost/在浏览器中打开时,出现以下错误:

替代文字

如果单击该Close the program按钮,错误消息将在一秒钟内重新出现,就好像它处于无限循环中一样.我非常感谢所有在得到这个工作的帮助.

我正在运行全新安装的Windows 7 Ultimate 64位.

编辑:从phpinfo()的结果:

Zend Extension Build    API220090626,TS,VC6 
PHP Extension Build     API20090626,TS,VC6 
Debug Build             no 
Thread Safety           enabled
Run Code Online (Sandbox Code Playgroud)

zom*_*bat 4

您可能使用了错误的 Xdebug 版本。我会查看phpinfo()并将其中的信息与Xdebug dll 的不同版本进行比较。

具体来说,您想查看是否启用了“线程安全”,并且需要知道您运行的是 VC6 编译的 PHP 还是 VC9(如果您使用 Apache,几乎可以保证您需要 VC6)。