Site icon Shaharia's Blog

How to enable xDebug in XAMPP or Apache

xDebug for PHP Coders

xDebug is a very popular and famous debugging utility for PHP programmers. It actually works with Apache. So to activate or install xDebug for PHP coders you just follow the steps given below..

Step 1:

Just open your php.ini file and find out with ‘xdebug’ then you can see like

;zend_extension = "C:xamppphpextphp_xdebug.dll"

Then just remove ‘ ; ‘ from that above line and just copy the following lines of code in your php.ini file.

xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler=dbgp</pre>

Now just restart your Apache and from now you can debug your server output result more smartly. Happy coding!!

Exit mobile version