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.so
library. So the user must re-compile the library himself.
Here is how to do it.
source
link.)tar -xvzf xdebug-2.2.1.tgz
cd xdebug-2.2.1
phpize
./configure
make
sudo cp modules/xdebug.so
/usr/lib/php/extensions/no-debug-non-zts-20090626
sudo apachectl restart
Check you are editing the same php.ini that shows up in phpinfo() in the broswer.
Here are my settings (I'm also on a Macbook Pro on Mountain Lion btw):
xdebug.var_display_max_children = 999
xdebug.var_display_max_data = 99999
xdebug.var_display_max_depth = 100
;zend_extension_ts=php_xdebug.dll
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
Works for me. Does any of that help?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With