I downloaded php_xdebug-2.0.5-5.3-vc9.dll, added at the end of PHP.ini the following line:
zend_extension_ts=\"C:/Program Files/php5/ext/php_xdebug-2.0.5-5
I have the exact same problem on Windows 7 too. It didn't work for me but perhaps for you it does. Xdebug has a special service page which helps you find out which version to download and what steps to take: http://www.xdebug.org/find-binary.php.
Following this didn't work for me unfortunatly. When I perform 'php -m' xdebug does not appear in the loaded modules list.
use zend_extension instead of zend_extension_ts
and look carefuly "Compiler" , "Thread Safety" , "Architecture" and PHP Version parameters in phpinfo()
example my php info say
PHP Version 5.3.1
Compiler MSVC6 (Visual C++ 6.0)
Architecture x86
Thread Safety enabled
so i used Xdebug 2.1.0 / 5.3 VC6 (32 bit)
zend_extension_ts
is deprecated on >5.3. Try it with zend_extension
instead.
You should probably not use the VC9
version, but the VC6
.
For more informations, see the block "Which version do I choose?" in the left-sidebar of http://windows.php.net/ which states (quoting) :
If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP
If you are using PHP with IIS you should use the VC9 versions of PHP
Do NOT use VC9 version with apache.org binaries
Also, quoting the Installation page of Xdebug's documentation :
From PHP 5.3 onwards, you always need to use
zend_extension
and notzend_extension_ts
.
perform php --ini to check witch config file is loaded.
if you have something like this :
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Just copy your php.ini in windows directory ;)