tags:

views:

198

answers:

1

i'm using MAMP and want to activate xdebug.

i've uncomment the following row in php.ini:

[xdebug]
zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"

i restarted MAMP and opened a php file containing phpinfo() on the web browser and saw a section named "xdebug". so im sure its installed.

however, the browser doesn´t print out any error messages.

how come?

+1  A: 

Maybe you have displaying errors disabled by default. Try to do:

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

before causing error in your script.

Kamil Szot
no its enabled. still wont work. a lot of users are having problem with mamp+xdebug. i wonder why. you've got a mac? if yes, how did you do it after installing MAMP?
never_had_a_name
oh now it worked. although i've got a line error_reporting E_ALL in php.ini i've got another line display_errors = Off and that disabled everything.
never_had_a_name