How to install Xdebug into PHP in under 3 minutes

preview_player
Показать описание
Lots of folks get confused on where and how to begin with Xdebug. This video, first in a series, shows you how to setup PHP and Xdebug on a Windows XP box, what to files to configure, and what to look for to tell you if Xdebug is working.

Basic steps:
download xdebug for your php version and save the dll file into your apache/modules folder
restart apache
reload the phpinfo screen looking for the "with xdebug" text in the logo box

Note - A little verbal stumble in the middle of the video that you should disregard, Xdebug is available for PHP versions 5.2 and 5.3 (and older versions of PHP as well) - I neglected to look and see if 5.4+ was available.
Рекомендации по теме
Комментарии
Автор

Thanks! This helped since I noticed that I needed QUOTATION MARKS on the path to the xdebug dll.

If anyone wants to copy and paste these php.ini settings shown in the video:
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_handler=dbgp

thezeta
Автор

Thanks. At this date, I had to use this parameter to get it to work: zend_extension, not zend_extension_ts

Автор

@JLittle2 Glad it worked for you, hoping to do a few more showing how to integrate Xdebug into NetBeans, Eclipse, Notepad++, etc. Anyway, thanks for checking the video out and leaving the nice comment.

sonoramike
Автор

You are my hero! Thanks a lot! God bless you to share it!

RafaelBSFerreira
Автор

Thanks a lot. You've really saved my day!

BARDODIAA
Автор

@thunderpeel2001 - I've always used fwd slashes for php.ini, even on a windows box. The only difference that I find is in the pathing delimiters -- ; for windows, and : for *nix. In the end there are only 2 possible options, so if the fwd slashes are not working for you then you can go to the backs. Thanks for the comment, hope the video helped.

sonoramike
Автор

After tweaking around I got it to work with WAMP. Insert this into your code and make sure you completely restart WAMPSERVER or it won't work! Also, a picture won't show, you have to scroll to the xdebug section in phpinfo which is towards the bottom of the page:

[xdebug]
zend_extension =
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

elimc
Автор

Good video. Generally though it's discouraged to close the PHP tag if it's already at the end of a file (PHP will close it for you).  It can cause debug headaches if you have whitespaces after the closing ?> tag (especially when dealing with sessions, cookies, headers and buffered output). 

WaseemSakka
Автор

Hello i have PHP Version 5.6.15 with 64 bits operating system and i have downloaded PHP 5.6 VC11 TS (64 bit) from xdebug. and i followed all the process which are shown in this video but xdebug is showing in phpinfo().
I have restarted my xampp server also.

bhavinv
Автор

I am using Xampp aswell, how do u register Apache 2.2 under services ?

tomyang
Автор

how dll can automatically come in php.ini file? you hav't mention how to install the extension the problem is extension does not install with PHP 5.3

lotictech
Автор

@islamLoverable Thanks, I've had the best intentions but have not made time to date, I'll try to get something knocked out this week showing how to make NetBeans sing. Stay tuned

sonoramike
Автор

realy great video. I did every thing but when i open php.ini file i did not fin in extension xdebug.dll and i did not find XDebug module. I place a exebug in apachi module i also try to place xDebug dll file in php/ext.Please help me what i have to do.I mut it manually but it again not attached with net help me

tahiriqbal
Автор

i have 2 php ini . Should i edit the producer or the developer php ini ?

SuperSamsosa
Автор

I tried these steps on Windows 7 with PHP 5.3.3 but it didn't work until I changed the forward slashes to back slashes, put the .dll in my PHP \ext folder, not apache modules, and changed zend_extension_ts to zend_extension.

jenksoraptor
Автор

I just tried to config lastes XDebug with php 5.2.17 and apache 2.2.x but I keep bouncing after the config what can be wrong? any ideas?

GilbertoMelendez
Автор

please feel free to add a comment and let me know if the video helped you or not

sonoramike
Автор

hey bro! How can I not write you a comment when you have such an excellent presentation.

Let me be the first one to comment on your video. Great job and very helpful!!!

Cheers and by the way... I also do produce videos just like you do. Hope you will like my presentation as well.

Have a nice day!

theITvideos
Автор

No idea what your description of 'bouncing after the config' means

sonoramike
Автор

how can i start index.php without server??

lisafox