How to Install Xdebug on Windows

Xdebug is the most popular debugging and profiler tool for PHP. There are complied Xdubug files are available on the internet that helps installation very easy for Windows as compared to other Operating Systems.

Steps to Install Xdebug:

  1. Go to Xdebug Download Page and download the appropriate binary for your Xampp installation.
  2. Move the downloaded DLL file into your XAMPP PHP extension directory. For my case, it’s at C:\xampp\php\ext  directory.
  3. Make sure that DLL file has “debug.dll” name.
  4. Open your php.ini file. For me it’s available at C:\xampp\php\php.ini.
  5. Paste the below code at the bottom of the file.
    zend_extension = c:\xampp\php\ext\xdebug.dll
    xdebug.remote_enable = 1
    xdebug.remote_handler = dbgp
    xdebug.remote_host = localhost
    xdebug.remote_autostart = 1
    xdebug.remote_port = 9000
    xdebug.show_local_vars = 1
  6. Restart your Xampp and open the PHPInfo page.  On success, you will find the Xdebug section like below


  1. Alden Gannon said:

    Burhan, thanks for the post.

    I’m trying to install Xdebug on a Windows Azure App Service and having no luck. Have you done this?

    October 9, 2019
  2. Lenin Zapata said:

    Hi, thank you very much, I was able to configure VSCode with Xdebug.

    November 21, 2019

Leave a Reply

Your email address will not be published. Required fields are marked *