Installation STEPS:

Open your browser & get the output from phpinfo(); copy and paste the whole HTML source code into the textarea of the Xdebug Wizard. (NOTE: It says to not paste the raw HTML source, but it worked for me. But in case for you it doesn’t, paste the browser output as-is)

Now the rest of the steps is just to follow the steps of the result generated by the wizard, mine looked like below:

xdebug install – Wizard Output

The Rest Of The Steps I Did..

Download the .tgz compressed source of xdebug as given in the #1 instruction from the wizard, for me the file was named: xdebug-2.2.1.tgz. (Note: I downloaded it to /Desktop/xdebug/)

Do $ sudo tar -xvzf xdebug-2.2.1.tgz //To Extract it using Terminal

Do $ cd xdebug-2.2.1//To navigate to the inner forlder xdebug-2.2.1 from the extracted file

Do $ sudo /opt/lampp/bin/phpize //You need to run phpize – This resides in /opt/lampp/bin/phpizeIf successful, you should see an output as below: