I am running php on a macbook pro running mountain lion.
Mountain lion comes with XDebug pre-installed, so based on a tutorial I’ve found , I made three steps.
First I’ve uncomment this line in my php.ini :
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
Secondly I’ve uncomment this line in my php.ini :
xdebug.remote_enable=1
And finally I restarted the apache server with :
sudo apachectl restart
The problem is that I see no xdebug appearing in my php details when I run a phpinfo().
Thank you.
PS : The path of the above xdebug.so file is correct.
I am answering my own question because Mountain Lion is a special case when it comes to running XDebug.
As you can see here,
mountain lion comes with an older
xdebug.solibrary. So the user must re-compile the library himself.Here is how to do it.
sourcelink.)tar -xvzf xdebug-2.2.1.tgzcd xdebug-2.2.1phpize./configuremakesudo cp modules/xdebug.so/usr/lib/php/extensions/no-debug-non-zts-20090626
sudo apachectl restart