Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.5.5-7.1-vc14.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 = "127.0.0.1"
xdebug.remote_log="c:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:\xampp\tmp"
; 3600 (1 hour), 36000 = 10h
xdebug.remote_cookie_expire_time = 36000
  • Stop/Start Apache

  • Click at the Github ★ Star :-)

toubson commented Nov 11, 2016

Thanks. Very useful

Thank you, helped immensely 👍

gvgvgvijayan commented Dec 2, 2016 edited

Thank you!

Thank you! This helped me :)

Thanks!

thanks..its very helpful

not work!
no error but not stopping on breakpoint ...

not work!!
same problem of Bruce

gecesi commented Jan 25, 2017

Thanks.
very helpful.

westy92 commented Jan 30, 2017

I needed to add the line xdebug.remote_autostart = 1.

Thanks! I wish I had a way of upvoting this! You should make a stackoverflow answer, and then I can upvote that!

Thanks a lot!!!!!!!!!! Two days i can't install Xdebug!!! And I succeeded with your help!!!

rypsx commented Feb 6, 2017

Very good, thanks a lot !

Iszeak commented Feb 12, 2017

Super, Thanks

Nice one, cheers

Thanks !!! Awesome !!!

rioda78 commented Feb 21, 2017

thanks very much

Thanks!

Thanks! :D

Thank you :)

Thanks

booncu commented Mar 24, 2017

Thank you :D

Hey Man, all I can say is. . .You ROCK! Thanks for this piece. I have never worked with a PHP IDE other than Dreamweaver. I needed an IDE and a tool I can use for debugging php code. I searched and found your tutorial. I opted for eclipse and I got the XDebug installed and configured according to your tutorial. Everything just went well without any errors. Once again, thanks a bunch!

magcent commented Apr 8, 2017

Thanks bro. ur the best!!

Thanks! Star 4 u!

Wow! It works! Thank you so much.

gk2go commented Apr 30, 2017

Once I I launch php in the console, I get:
Failed loading c:\xampp\php\ext\php_xdebug-2.5.3-7.1-vc14-x86_64.dll

@gk2go this is because you have downloaded the incorrect binary, first use the https://xdebug.org/wizard.php to figure out which binary you need to download. Then make sure to include your binary within the specified folder and make sure it matches the name.

boomsya commented May 12, 2017

awesome! 👍 too easy like: press X to win

AWesome

SoboLAN commented May 16, 2017

Worked very nice for me.

However I can't seem to understand why it's not included by default in XAMPP, just like for older versions.

Go-Noji commented Jun 2, 2017

Thanks!

i need Xdebug for xampp V3.2.2 :/ text for php.ini

cpekas commented Jun 17, 2017

thank you very much

Big thanks (also thnx @poncianodiego for little additional help :) )

Thank you!

Thanks! It was handy!!!

Thank you!

Muitoo bom me ajudou muitooo!!!!!

i trusted https://xdebug.org/wizard.php and spend the all day , it is because it gave me wrong versionof dll .
Anyways you save my day , Good Job , Thanks

Very useful indeed!

Thank you ...

Thank you very much!!!

ouriels commented Aug 11, 2017 edited

Hello all, do you know what is wrong in my configuration please ?
I followed this procedure, I have no errors but Netbeans don't stop at my breakpoints.

When I launch Debug in Netbeans, It wait connection:

capture

In log file (C:\xampp\tmp\xdebug.txt), I have this many times:

Log opened at 2017-08-11 08:39:31
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-08-11 08:39:31

Here is my Netbeans config:

capture2

And part of my php.ini:

[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.5.5-7.1-vc14.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 = "127.0.0.1"
xdebug.remote_log="c:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:\xampp\tmp"
; 3600 (1 hour), 36000 = 10h
xdebug.remote_cookie_expire_time = 36000

I precise I use Symfony 3.3 application.

Thank you for your help !!

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