xdebug config in MAMP Mac OS X

locate php.ini:

http://localhost:8888/MAMP/index.php?language=English&page=phpinfo

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = On

uncomment the setting zend_extension and add the following:

xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

Note that port 9000 is the standard setting in PhpStorm (see Preferences > Debug > xDebug

Restart the webserver.

Install the xDebug Chrome Helper.