MAMP and Zend Xdebug

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.


Signup for my mailing list

Receive other rambings like this on design, code, and some times food.