Xdebug, MAMP, and PHPStorm

Last modified: 
Thursday, July 30th, 2015

Enabling Xdebug on MAMP

Add something like the following to your php.ini:

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.6.7/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
;xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
;xdebug.remote_autostart=1

There are good instructions for setting up Xdebug on MAMP here http://www.human-element.com/xdebug-setup-mamp-aptana/ and here https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html.


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.