Xdebug with XAMPP in Ubuntu 14.04

xdebug is located under xampp folder in

/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

on ubuntu 14.04 just search for it in /opt/lampp and copy the full path to it and then open php.ini and replace

;zend_extension=opcache.so

with

zend_extension="/path/xdebug.so"

in my case

zend_extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"


edited in /opt/lmapp/etc/php.ini assigned the location of xdebug.so to zend_extension

[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"

Replace with

[xdebug]
zend_extension="xdebug.so"

and restart lampp and Xdebug is installed.

screenshot

AS I was not doing this before because Xdebug Docs itself warn not to do this

Note: You should ignore any prompts to add "extension=xdebug.so" to php.ini — this will cause problems.

Tags:

Php

Xdebug

Ubuntu