Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling Xdebug on Mac OS X Lion

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?

like image 470
Carlos at Koalabs Avatar asked Apr 14 '12 20:04

Carlos at Koalabs


2 Answers

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

like image 150
Mike Purcell Avatar answered Oct 12 '22 21:10

Mike Purcell


Xdebug.org's tailored installation wizard worked for me.

(using built-in apache)

like image 4
dave Avatar answered Oct 12 '22 22:10

dave