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 on the Github โ˜… Star :-)

PhpStorm

Netbeans

Eclipse

  • No comment

Visual Studio Code

Adobe Brackets

toubson commented Nov 11, 2016

Thanks. Very useful

Thank you, helped immensely ๐Ÿ‘

gvgvgvijayan commented Dec 2, 2016

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

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 !!

Amazing!! Thank you so much

potapo commented Aug 29, 2017

cool,that's awesome

My lazy self says thanks!

Thanks a lot!!!

thanks

elemes1 commented Sep 24, 2017

Thanks a lot, for Laragon this didn't work at first, so I pointed the path to C:\laragon\bin\apache\httpd-2.4.27-win64-VC14\bin\php_xdebug-2.5.5-7.1-vc14-x86_64.dll Worked like Charm with your config.

Thanks

Thanks! Works excelent!

Owner

odan commented Sep 30, 2017

@ouriels Here are the debugging settings for Netbeans: https://postimg.org/image/8tfvemy7l/

a1iraxa commented Oct 17, 2017

Great Work

Hi friends, I have latest PHP Version 7.1.9 and I have installed Apache server all are running fine. I am not able to configure Xdebug in eclipse environment. I am not getting Xdebug in php.ini after pasting php_xdebug-2.5.5-7.1-vc14.dll in D:\xampp\php\ext. Please guide me. I have environment Windows7, JDK, Eclipse, XAMP, Apache server all are running fine. What should I achieve it to configure Xdebug. Waiting for your response.

khoimk commented Oct 28, 2017

Thanks so much. This has ended my 2 painful days ๐Ÿ‘

Owner

odan commented Oct 30, 2017

@aliumarcdp In case you have installed XAMPP on drive D: just change the drive letter from c: to d: in the php.ini [XDebug] section.

bkarpov commented Nov 22, 2017

Thanks

Thank you very much.

thank you very much *************************

enfrte commented Dec 4, 2017

Thanks, this worked on VS Code 1.18.1 - PHP 7.1. - XAMP 3.2.2

Well done!!
Thank you very much. ;)

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