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
![phpstorm remote debugging phpstorm remote debugging](https://edcs.me/assets/img/setting-up-xdebug-with-phpstorm-and-laravel-homestead/phpstorm-xdebug-server-before.png)
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
#PHPSTORM REMOTE DEBUGGING 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.
![phpstorm remote debugging phpstorm remote debugging](https://confluence.jetbrains.com/download/attachments/57289185/validate-debugger.png)
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.
![phpstorm remote debugging phpstorm remote debugging](https://luminfire.com/wp-content/uploads/2016/08/Configure-PHPStorm-1.png)
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.