Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x



If the file C:\xampp\php\ext\php_xdebug.dll already exists, you can skip the download.

zend_extension = "c:\xampp\php\ext\php_xdebug.dll"
;zend_extension = "c:\xampp\php\ext\php_xdebug-2.9.7-7.4-vc15-x86_64.dll"
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = ""
xdebug.remote_log = "c:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:\xampp\tmp"
;36000 = 10h
xdebug.remote_cookie_expire_time = 36000
  • Restart Apache

  • Click the Github ★ Star button :-)



Visual Studio Code

Adobe Brackets

Sublime Text 2 and 3

Start debugger from the console

Enter cmd:

set XDEBUG_CONFIG="idekey=xdebug"
php test.php


Add XDEBUG_SESSION_START=PHPSTORM as query parameter to the url, e.g.

Follow me on Twitter | Blog

Copy link

odan commented May 6, 2019

Xdebug 2.7.2 released! →

Copy link

trongnguyentcec commented Jun 3, 2019

For Netbeans 8 & PHP 7.1, 7.2, 7.3 please use these instructions:

Copy link

amindeist commented Jun 28, 2019

thank...very good

Copy link

HenkPoley commented Jul 16, 2019

@odan : For XAMPP Version 7.3.4 you need to download the (Zend) Thread Safe (TS/ZTS) version:

Why they call it ZTS in one place, and TS in another 🤷‍♂️

btw, people can also use the built-in Xdebug by using zend_extension = "C:\xampp\php\ext\php_xdebug.dll" instead of the line above.

This actually works for me, while the version you point to doesn't.

I didn't need to unblock the DLL, even with Windows Defender on High+ cloud detection level ('Block At First Sight').

Copy link

azazqadir commented Aug 9, 2019

This process of install xdebug on windows based stack can be simpler if you use the xdebug installation wizard. To use the wizard tool create a PHP file and add this in the file

Now run this file in the browser and copy the details in the box and paste it in the wizard tool. Now, click Analyze my phpinfo() output button

Now you will some instructions, follow it and you are good to go.

Source: PHP debug process with xdebug

Copy link

nonew commented Aug 24, 2019

Can you help to figure out how to config in MacOS?

Copy link

free-developers commented Sep 5, 2019

Thank you so much

Copy link

hide2go commented Oct 28, 2019

YES! Thank you so much!!

Copy link

GitHub-Mike commented Nov 15, 2019


This version works only on PHP 7.3.x and 64bit XAMPP

The version for PHP 7.3.0 and 32bit XAMPP is: (current release is 2.8.0)

Copy link

yosigosi commented Jan 5, 2020

The same as westy92 commented, also I needed to add the php.ini line:
xdebug.remote_autostart = 1.
Ubuntu 18.04 php 7.2 Eclipse 2019-09

Copy link

remasterzero commented Apr 7, 2020

I give you the thousand star 👍

Copy link

odan commented Apr 7, 2020

@remasterzero Awesome!!! 🤩 🥳🍾

Copy link

meksiabdou commented Apr 12, 2020

Thank you so much <3

Copy link

ThomasBerne commented Jul 17, 2020

Very usefull ! Think you so much !

Copy link

fqodry commented Aug 5, 2020

thank you!! very useful 👍

Copy link

Paresh98000 commented Sep 11, 2020

Thanks ! you resolved my 3 days headache

Copy link

anjalbinayak commented Sep 17, 2020

Thank you, I can never imagine to live without var_dump readable output.

Copy link

vid100 commented Oct 8, 2020

Thank you so much..

Copy link

nalendro16 commented Oct 31, 2020

really apreciate your work! thanks

Copy link

bksubramanyarao commented Nov 13, 2020

thanks a ton 👍

Copy link

moehammadiqbql commented Jan 4, 2021


Copy link

Dorothee47 commented Feb 3, 2021

Thank you very much for your excellent instruction!

I work with Windows 10 and Apache Netbeans 12.2.
I had to add the following statement in php.ini:


Copy link

nileshp9495 commented Feb 6, 2021

Thanks. Very useful

Copy link

zericksp commented Apr 1, 2021

Great. Finally I can use Xdebug at VS Code!

Copy link

Paresh98000 commented Apr 4, 2021

How should we go for IIS debug ???

Copy link

os3albert commented May 13, 2021

Thank You Man!!! 😇 🤓 ❤️

Copy link

webrefer commented Jun 13, 2021

thank you

Copy link

vukasinpetrovic commented Oct 15, 2021

Awesome, thank you! ❤️

Copy link

wordpressyu commented Oct 17, 2021

a tutorial like this ,
should be for wamp server.
when wordpress is installed on wamp ,
what neccessry confugurations of wamp should be done ?

Copy link

ElvisAns commented Feb 24, 2022

It works but you are commenting the name of the downloaded file
instead of
zend_extension = "c:\xampp64\php\ext\php_xdebug.dll"
;zend_extension = "c:\xampp64\php\ext\php_xdebug-2.9.7-7.4-vc15-x86_64.dll"
i used

;zend_extension = "c:\xampp64\php\ext\php_xdebug.dll"
zend_extension = "c:\xampp64\php\ext\php_xdebug-2.9.7-7.4-vc15-x86_64.dll"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment