You can check if Xdebug is available, by running php -version in your CLI. There’s plenty of resources on the inter-web’s for this. Make sure you’ve got Xdebug running and remote_enable=1 is set in your php.ini. This one’s a gimme, but still a point worth making to cover all the bases. In your ~/.bash_profile file you can add something like this.Įcho $PATH | grep -q -s "/Applications/MAMP/bin/php/php5.6.10/bin"Įxport MAMP_PATH=/Applications/MAMP/bin/php/php5.6.10/bin This can be as simple as adding the MAMP PHP version to your $PATH. This can cause all sorts of weirdness, especially with Xdebug, so make sure you’re using your MAMP version of PHP on your CLI. Time and again I’ve seen people have issues with their CLI PHP version and Web server PHP version not matching up. Step 0: Use the same version of PHP for your CLI and your webserver. You’re on a recent version of OSX, you have MAMP Pro 3 installed, and you’re using PHPStorm. There’s just one missing piece, for me, and that was how to handle symlinks in your plugins. I followed Michael Novotny’s post on this, and it almost works. This time I decided to document how I was able to get it working this time, so hopefully I don’t have suffer through this again. There’s always something that get’s me caught up and messed up. I’ve probably set it up, in various incarnations, close to 10 times. While true, it’s also one of the biggest pain in the asses to setup. Written by Peter Tasker Open source developer in Ottawa Ontario, Canada You should follow him on Twitter MAMP, Xdebug, PHPStorm and symlink madnessĪsk any PHP developer and they’ll tell you Xdebug is the best thing since sliced bread.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |