Download AMPPS

Subscribe to our Newsletter for any and all AMPPS related news and tutorials
By entering your email, you agree to our Terms of Service and Privacy Policy.

Tell your Friends about AMPPS


Installing Xdebug for all PHP Versions in AMPPS for Windows

What is Xdebug ?

Xdebug is a PHP extension which provides debugging and profiling capabilities. You can learn more about Xdebug from their documentation.

Lets Start:

1. Download the respective php_xdebug-***.dll from their official website Below image has the highlighted Xdebug 2.2.3 dll's to download for respective PHP in AMPPS. (64 Bit users should also download the same dll's) xdebugs_for_ampps 2. Copy the respective xdebug dll's into their respective PHP's extension folder. NOTE: If your current active PHP version is 5.3 then PHP 5.3 is located at folder Ampps\php. And rest are Ampps\php-5.*. Active PHP version are renamed as Ampps\php basically. Extension folders location if PHP 5.3 is active: PHP 5.2 = Ampps\php-5.2\ext PHP 5.3 = Ampps\php\ext PHP 5.4 = Ampps\php-5.4\ext PHP 5.5 = Ampps\php-5.5\ext After moving the dll's rename them to php_xdebug.dll (Just following the convention here not necessary though, just see to it that you give path to .dll properly in PHP Configuration) 3. Now lets configure PHP Configuration one by one. I assume your current active PHP version is PHP 5.3.
  • Open AMPPS Control Center(GUI) -> PHP Tab -> ConfigurationPHP Configuration
  • Add the following line in the end of the file and save it.
    zend_extension="{$path}\{$php_dir}\ext\php_xdebug.dll"
    For PHP 5.2 write,
    zend_extension_ts="{$path}\php\ext\php_xdebug.dll"
    For PHP 5.4 and PHP 5.5 write,
    zend_extension="{$path}\php\ext\php_xdebug.dll"
  • Restart Apache.Restart Apache
You have now successfully configured Xdebug.

Verify Xdebug is installed:

Now, you can do the same thing for all the PHP version or just the one you want by switching the PHP version. You can change PHP version from PHP Tab in AMPPS Application: Change PHP Version We have just configured Xdebug on AMPPS, now you can start debugging your code. 🙂 Hope this article was helpful.

Leave a Reply

Newsletter Subscription
Subscribing you to the mailing list