To add xdebug to mac using MAMP PRO, you have to do change permissions to a folder for it to copy the file: $ sudo chmod 777 /usr/lib/php/extensions/no-debug-non-zts-20090626/ Then you can do the command line install: $ pecl install xdebug You need to edit the php.ini file and you HAVE to uncomment:
[xdebug] zend_extension="/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
Now you need to add these below:
xdebug.remote_enable = On xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.profiler_enable = off xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "/Library/Application\ Support/appsolute/MAMP\ PRO/tmp/" xdebug.collect_vars = On