MAMP and Zend Xdebug

Categories: Development

This is more of a simple note to self. But after setting up a fresh computer, all of those fuzzy little bits about getting MAMMP to work perfectly slip my mind.

The one thing that can be a little confusing with MAMP is the multiple config locations.

/Applications/MAMP/conf/php-x.x.x/php.ini
/Applications/MAMP/bin/php/php-x.x.x/conf/php.ini

For example, I am running PHP 7.1.8 and generally, I update both config files to prevent any confusion.

[xdebug]
;zend_extension="/Applications/MAMP/bin/php/php7.1.8/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so"

The fastest way to test this is to use var_dump(), you should see a much nicer output.

The other way to confirm its working is to look at you phpinfo() and search for Xdebug.


Adam Patterson

Adam Patterson

User Interface Designer & Developer with a background in UX. I have spent 5 years as a professionally certified bicycle mechanic and ride year-round.

I am a husband and father of two, I enjoy photography, music, movies, coffee, and good food.

You can find me on Twitter, Instagram, and YouTube!