jordanliner.blogg.se

Php enable xdebug ampps mac
Php enable xdebug ampps mac












php enable xdebug ampps mac
  1. #Php enable xdebug ampps mac how to#
  2. #Php enable xdebug ampps mac install#

If you get an error… Failed 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. After copying xdebug.so as instructed, try to run Running that will configure xDebug in a 64bit version which will not work with our AMPPS after compiled.

#Php enable xdebug ampps mac 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.

php enable xdebug ampps mac

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.

php enable xdebug ampps 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)

#Php enable xdebug ampps mac 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.














Php enable xdebug ampps mac