The installation of XDebug requires some additional steps to make it work:
- Change the local bash files to address the MAMP version of php.
- Download the same version of php that you want to use within MAMP from php.net and build it manually.
- Download XDebug and follow the installation instructions as provided by the XDebug website.