$ php --ini
$ vim {Path/To/Loaded/Configuration/File.ini}
Add where [xdebug]
is defined:
[xdebug]
zend_extension="/Applications/MAMP/bin/php/php{phpversion}/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.profiler_enable = 0
xdebug.profiler_output_dir = "/tmp"
;extension="memcached.so"
xdebug.max_nesting_level = 200
Mamp > Edit Template > PHP > {PHP Version}
At the bottom, for the [xdebug]
area:
zend_extension="/Applications/MAMP/bin/php{version}/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1
;xdebug.profiler_enable=0
;xdebug.profiler_output_dir="/Applications/MAMP/tmp"