Configuring Xdebug for PHP development/Mac

From Joomla! Documentation

< Configuring Xdebug for PHP development

Configuring Xdebug with MAMP


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

  • 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 like e.g. TextWrangler
  • Find the section [xdebug]
  • Uncomment the line
;zend_extension="/Applications/MAMP/bin/php/<selected php version>/lib/php/extensions/no-debug-non-zts-20121212/"

by removing the ; character at the beginning of the line

  • Add after the line the following text, if not already existing

  • Save changes and close the editor
  • Restart your MAMP Server

Note: You can set a different port number if you need.