Specific installation steps will vary, due to the diversity of PHP installation sources (e.g. Apple's built-in PHP, brew, MAMP, XAMPP, AMPP, Vagrant, Bitnami, and MacPorts). The best way to install XDebug is to identify your specific PHP runtime and then search Google for "mamp xdebug" or "macports xdebug" as needed.
#### Mac OS X, with PHP from MacPorts
```bash
sudo port install php5-xdebug
```
For other platforms and more details see [XDebug's installation instructions](http://xdebug.org/docs/install).