AMPPS is a great, but it lacks xdebug support. If you run the latest AMPPS version 3.7 on OS X you probably don't have the xdebug extension in the php-7.0/lib/extension folder.
To enable it you have to the following:
1. Select the PHP version you want to run via AMPPS GUI (in my case was PHP 7.0)
2. Make sure you use AMPPS' PHP binary inside terminal by running the following command
ls -l `which php`
The output should be something like:
If not try to run this:
Try to run the previous command again and the path you see should be the one inside AMPPS directory.
3. Copy the phpinfo() output from localhost/cgi-bin/phpinfo.cgi
4. Download the right xdebug version you need from xdebug.org/wizard.php (you will have to paste the page text copied at step 1)
5. Untar/unzip xdebug files. - I used Zipeg, but should work with tar command in the terminal as well
7. Inside the folder with the xdebug files start running the command recommended by xdebug download page. First command to run is:
8. Second command requires some custom parameters to make it compatible with AMPPS (see Issues with enabling Xdebug on AMPPS)
./configure --enable-xdebug CC="gcc -arch i386" CXX="g++ -arch i386"
7. Third command will be simple:
8. Copy files to AMPPS:
cp modules/* /Applications/AMPPS/php/lib/extensions/
8. Enable xdebug inside php.ini by un-commenting this line inside the php.ini (make sure you adjust paths for different versions if needed):