How to Install Xdebug on Windows

Xdebug is the most popular debugging and profiling tool for PHP. There are complied Xdubug files available on the internet that help installation very easily 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

Be First to Comment

    Leave a Reply

    Your email address will not be published.