WampServer comes with Xdebug preinstalled, for example, WampServer 2.5 comes with Xdebug 2.2.5. This recipe is about how to update the Xdebug version used.
-
Gather
phpinfo()
data, either by creating a script withphpinfo()
in it or usephp -i >phpinfo.txt
on the command line -
Paste your phpinfo() information and click the Analyze my phpinfo() output button
-
You should get a page like this:
The instructions are generally fine but there are some modifications for WampServer so follow the next steps:
-
Download the DLL file
-
Put it to
zend_ext
(instead of the suggestedext
folder), like this: -
Update your
php.ini
by setting thezend_extension
option to the correct value, e.g.:zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.6-5.5-vc11.dll"
-
Repeat the previous step for
phpForApache.ini
. Don't forget to do this;php.ini
is for command-line usage,phpForApache.ini
is used when serving the web pages.