Configuring Xdebug for PHP development/Mac
From Joomla! Documentation
< Configuring Xdebug for PHP development
Configuring XDebug with MAMP[edit]
Prerequisites[edit]
These instructions are for Mac OS X (actually tested on version 10.9.2 Mavericks) with installed MAMP Application (actually tested on MAMP version 3.0.4).
Configuration Instructions[edit]
- Open finder and navigate to
/Applications/MAMP/conf/<selected php version>/
(NOTE: <selected php version> is the PHP version that you have selected in the MAMP configuration)
- Open the file php.ini with a text editor such as TextWrangler
- Find the section [xdebug]
- Uncomment the line
[xdebug]
;zend_extension="/Applications/MAMP/bin/php/<selected php version>/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"
by removing the semicolon character at the beginning of the line.
- Add after the line the following text, if not already existing
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
- Save changes and close the editor
- Restart your MAMP Server
Note: You can set a different port number if you need.