
Your Xdebug section should be at bottom of your php.ini file. Zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so" Open /Applications/MAMP/bin/php/php5.5.3/conf/php.iniįind the section Xdebug and uncomment (aka remove the semicolon) the zend_extension and add the following two options until your section looks like this: Add the remote session parameters to php.ini If you setup you MAMP PHP globally you can also do:Īnd find your php.ini path. Your php ini file will be in: /Applications/MAMP/bin/php/php5.5.3/conf/php.ini /Applications/MAMP/bin/php/YOUR_PHP_VERSION/conf/php.ini Php -v Check your PHP version in terminal bash_profile: # MAMP PHPĮxport MAMP_PHP=/Applications/MAMP/bin/php/php5.5.3/bin bash_proile doesn’t exist touch ~/.bash_profile open ~/.bash_profileĮnter the following at the bottom of your. Set your PHP version globally (optional)Įither create or open your. Find Your PHP version in MAMP Find your PHP version in MAMP 2. You should be able to copy paste all commands. Note I will be doing most work from the terminal. There are plenty of steps to do in order to get this to work. Here is how those two options look like in PhpStorm: Xdebug PhpStorm Direct vs Remote
#Mamp install for mac youtube code#
The second method is the remote debugging where anywhere in you code you set a break point and essentially trigger the debugging remotely, in our case a browser. So you need to know exactly where to start and all files you want to debug need to be somehow connected (told you I am no expert on this…). The first one essentially is essentially like running php from your command line using Xdebug. Essentially you can find two types of debugging. If anybody knows the proper terminology, please leave them in the comments and I am more than happy to change this. I am no expert on this topic, so apologize my language. YouTube Video Xdebug, PhpStorm and MAMP – OSX – Setup GuideĪs seen on: | Link to YouTube | Subscribe to my channel Two different types of Xdebug modes In our case I am interested to debug WordPress Themes and Plugins without having to declare what file to start from. Our goal here is to get remote debugging setup to be able to debug any line within a much bigger web app. Very excited to present my own Setup Guide to get Xdebug, PhpStorm and MAMP to play nice together.
