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?
Xdebug.org's tailored installation wizard worked for me.
(using built-in apache)
Be sure your
html_errors
anddisplay_errors
are turned on via your php.ini file.I've the same problem.
I was previously be able to activate it using MAMP. Anyway this environment created problems and I've installed a standalone mysql and activated Mac OS Lion's apache.
I've recompiled
xdebug.so
and modified/private/etc/php.ini
:But there's nothing I can do, I'm not able to get NetBeans 7.1 attach to the debugger.
What I am missing?
php-config
output: