views:

1458

answers:

5

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

alt text

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
+2  A: 

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).

zombat
Thread safety is enabled. PHP is complied with VC6. I grabbed thread-safe 5.3 VC6 and neither the 32-bit flavor nor the 64-bit flavor is loaded. However, Apache doesn't crash anymore.
Derek
A: 

Yes, there is a known problem - is almost impossible to get Xdebug working with latest Xampp and 64-bit Vista/Win 7.

There is a bug reported with many users complaining about it.

The solution seems to be latest beta version on Xampp. It includes version 2.0.6 (dev) of xdebug and it is working just fine.

I tested it on 64-bit Vista for approx 10 days and not encountered any problem yet.

Vafliik
A: 

si esa es la solucion yo probe con php_xdebug-2.0.5-5.2.dll pero no pude instalarlo y luego probe con php_xdebug-2.0.5-5.2-nts.dll y si pude.

rodoprogramador
A: 

Like others have said, you need to match your xdebug version with your php version.

You've already matched up PHP version number, thread safety, and compiler.

If you haven't already figured it out (this is an old thread), what you're missing is the INI configuration. If you are loading a module that's thread safe, you need to use the following line:

zend_extension_ts="C:\Path\To\The\Extension.dll"

If the module is not thread safe, then you use the INI directive you've been trying to use.

This only applies to zend_extension's and not regular extensions.

dcousineau
A: 

And of course commies forget to add xampp beta release for Windows 7 :(

Joseph Stalin