![]() Zend_extension = /Applications/AMPPS/php-5.6/lib/extensions/ext/xdebug.so configure -enable-xdebug CC="gcc -arch i386" CXX="g++ -arch i386"Īfter the module is built, just continue following instructions on official xDebug site on where to copy it and how to configure in php.iniĪnd last but not least, I am using following settings in my php.ini: ![]() 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. 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. 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) 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |