Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install xdebug 2.2.0 for AMPPS on OSX
Grab the 'PHP Remote Debugging Client' (the pre-complied xdebug binary for OSX) from here:
http://code.activestate.com/komodo/remotedebugging/
Unzip it, find the folder that corresponds to the version of PHP you want to install it for and copy the xdebug.so file from there into your php extensions folder in the relevant PHP version directory. E.g. for PHP 5.4:
/Applications/AMPSS/php-5.4/lib/extensions/ext/
Now open PHP.ini in a text editor:
/Applications/AMPSS/php-5.4/etc/php.ini
And add this line towards the bottom of the file, just above the dynamic extensions section:
zend_extension = /Applications/AMPPS/php-5.4/lib/extensions/ext/xdebug.so
Restart Apache, and you're done.
@kingkool68

This comment has been minimized.

Copy link

@kingkool68 kingkool68 commented Jul 30, 2013

This is awesome. Thanks for putting this together.

@AfzalivE

This comment has been minimized.

Copy link

@AfzalivE AfzalivE commented Feb 7, 2014

Just an update, xdebug is already included with AMPPS now but php.ini doesn't have the lines to use it by default.

Just add these lines above the Dynamic Extensions section

[XDebug] 
zend_extension=/Applications/AMPPS/php-5.4/lib/extensions/xdebug.so 
xdebug.remote_enable=1 
xdebug.profiler_enable=1 
xdebug.profiler_output_dir=/Applications/AMPPS/tmp 
@AleksMeshkov

This comment has been minimized.

Copy link

@AleksMeshkov AleksMeshkov commented Aug 28, 2015

Thanks!

@griffiti

This comment has been minimized.

Copy link

@griffiti griffiti commented Nov 25, 2015

Thanks tons!

@semachka

This comment has been minimized.

Copy link

@semachka semachka commented Jan 26, 2016

Much Appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment