无法获得Xdebug的在Windows 7工作 [英] Can't get Xdebug to work on Windows 7

查看:193
本文介绍了无法获得Xdebug的在Windows 7工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最新的XAMPP包,其中包括PHP 5.3.0。我试图启用Xdebug的,但它只是将无法工作。

这就是我在随XAMPP在php.ini更改:

 ;取消注释
的zend_extension =X:\\ XAMPP \\ PHP \\分机\\ php_xdebug.dll;添加下面几行:
xdebug.remote_enable =真
xdebug.remote_host =本地主机
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp

阿帕奇启动正常,但是当我打开的http://本地主机/ 在浏览器中,我得到以下错误:

如果我点击关闭程序按钮,错误信息将在第二重新出现,就好像它是一个无限循环。我会非常AP preciate的任何在得到这个工作的帮助。

我运行一个全新安装的Windows 7旗舰版64位。

编辑:
从的phpinfo()的结果:

  Zend扩展构建API220090626,TS,VC6
PHP扩展构建API20090626,TS,VC6
调试版本没有
线程安全启用


解决方案

有可能你的Xdebug的版本错误。我想看看 phpinfo()函数并有比较信息到的不同版本的DLL的Xdebug的

具体而言,您想看看线程安全已启用,并且你需要知道你,如果你使用Apache是​​否正在运行一个VC6编译PHP或VC9(,它几乎可以保证你想要的VC6)。

I installed the latest XAMPP package which includes PHP 5.3.0. I am trying to enable Xdebug, but it just won't work.

Here's what I changed in the php.ini shipped with XAMPP:

; 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

Apache starts fine, but when I open http://localhost/ in my browser, I get the following error:

If I click the Close the program button, the error message will reappear in a second as if it was in an infinite loop. I'd greatly appreciate any help in getting this to work.

I am running a fresh install of Windows 7 Ultimate 64-bit.

EDIT: From the result of phpinfo():

Zend Extension Build    API220090626,TS,VC6 
PHP Extension Build     API20090626,TS,VC6 
Debug Build             no 
Thread Safety           enabled

解决方案

It's possible you have the wrong version of Xdebug. I would take a look at phpinfo() and compare the information there to the different versions of the Xdebug dll.

Specifically, you want to see if "Thread Safety" is enabled, and you need to know whether you're running a VC6-compiled PHP or a VC9 (if you're using Apache, it's almost guaranteed that you want the VC6).

这篇关于无法获得Xdebug的在Windows 7工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆