Enabling Xdebug on Mac OS X Lion

apache2, osx-lion, php, xdebug

Solution

Be sure your `html_errors` and `display_errors` are turned on via your php.ini file.

Problem

i've been trying to enable Xdebug for Mac OS X Lion, but can't make it work. This should be pretty straight forward but it just isn't working for me. These are the steps i took: 1 - Uncommented this line of the php.ini file: ``` zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" ``` 2 - Restarted my Apache Server with ``` sudo apachectl restart ``` 3 - Checked that it is enabled via the phpinfo() function. It is in fact enabled both as Zend module and as a separate module. But it doesn't work. Everytime an error occurs in my php scripts, they are displayed using the ugly error handling by default. var_dumps also don't work. Am I missing a step?

Original source