
To be honest I Googled a lot on this and finally found a solution which is working for me: We need to compile xDebug to 32-bit architecture in order to make it work.

Applications/AMPPS/php-5.6/lib/extensions/ext/xdebug.so: mach-o, but wrong architecture After copying xdebug.so as instructed, try to runįailed loading /Applications/AMPPS/php-5.6/lib/extensions/ext/xdebug.so: dlopen(/Applications/AMPPS/php-5.6/lib/extensions/ext/xdebug.so, 9): no suitable image found. Running that will configure xDebug in a 64bit version which will not work with our AMPPS after compiled.
AMPPS ALIAS OSX HOW TO
If you get any errors using this command, please use google to find how to resolve them before proceeding.Īfter phpize, instructions tell us that we need to run Let’s proceed with compiling our xDebug from source now.įollowing instructions from xDebug page, unpack downloaded sources and navigate to that folder in terminal. We should have /Applications/AMPPS/php/bin/php displayed when we write: bash_profile:Įxport PATH=/Applications/AMPPS/mysql/bin:/Applications/AMPPS/php/bin:/usr/local/bin$PATHĪfter that logout and login again. In order to get php from AMPPS it is easiest way to add a line in. If you just have installed AMPPS, I suppose that php command will lead you to /usr/bin/php – which is, in fact, default php from OSX, but we need to get AMPPS’s which is located in /Applications/AMPPS/php/bin/php. We need to change several things in order to make this process possible.

The answer is simple: using AMPPS on OSX above steps will just not work as we expected to by default. Now when you have all necessary steps described, just follow the steps to build xDebug. Paste that content into textarea on xDebug page we just opened and click on “Analyse phpinfo() output”Ĥ. Navigate to: in the browser, and select all / copy whole content of the web pageģ. Navigate to xDebug custom installation instructionsĢ. But when tried to debug in PHPStorm, some weird errors appeared and debugging was practically impossible…Īfter several hours of playing with xDebug settings, I came to the idea to try to build custom downloaded xDebug from source and finally after succeeded, my debugging error is gone with the newest xDebug version installed.ġ. I switched the AMPPS PHP version to 5.6 and installed Komodo xDebug as usual.
AMPPS ALIAS OSX MAC
Usually, when installing xDebug to make it work with AMPPS on Mac OSX, I downloaded Komodo Remote Debugging Package and selected version which fit my PHP version and put xdebug.so in my PHP modules directory.Įverything was just fine at the time, until the moment I started to play with Magento 2. (As I am sure I will forget it if not in written form :-p)
AMPPS ALIAS OSX INSTALL
You may be wondering why I am writing yet another article about xDebug installation on Mac OSX, but in fact, I am writing this more because of myself as I want to remember the easiest way on how to build and install custom xDebug without additional troubles in short time.
