- Mac OS software 5 Comments JetBrains PhpStorm cracked is a smart and lightweight cross-platform PHP IDE that focuses on developer productivity has an in-depth understanding of your code, provides smart code completion, fast navigation and instant error checking.
- Using Prettier in WebStorm. Use the Reformat with Prettier action (Opt-Shift-Cmd-P on macOS or Alt-Shift-Ctrl-P on Windows and Linux) to format the selected code, a file, or a whole directory.
Note
To start using PhpStorm, download the version for the desired OS from the PhpStorm download page. The next step depends on the OS. OS Specific instructions Linux. Unpack the downloaded.tar.gz file. Run PhpStorm.sh from the bin sub-directory OSX. Download the PhpStorm-2016.2.dmg Mac OS X Disk Image file. Mount it as another disk in. It seems, with the latest MAcOs updates, that Java was also updated, which influenced PhpStorm performance very badly. Anyway, I decided to update my Java. Was $ java -version java version '1.6.
Docker on MacOS requires you to create a host address alias on your loopback device.
Table of Contents
- Configuration
Ensure you know how to customize php.ini values for the Devilbox and have a rough understandingabout common Xdebug options.
Important
Ensure you have created an Host address alias on MacOS and10.254.254.254 is aliased to your localhost.

For the sake of this example, we will assume the following settings and file system paths:
| Directory | Path |
|---|---|
| Devilbox git directory | /home/cytopia/repo/devilbox |
| HOST_PATH_HTTPD_DATADIR | ./data/www |
| Resulting local project path | /home/cytopia/repo/devilbox/data/www |
| Selected PHP version | 5.6 |
| Host address alias | 10.254.254.254 (see prerequisites) |

The Resulting local project path is the path where all projects are stored locally on yourhost operating system. No matter what this path is, the equivalent remote path (inside the Dockercontainer) is always /shared/httpd.
Important
Remember this, when it comes to path mapping in your IDE/editor configuration.
1. Ensure Xdebug port is set to 9000
2. Set path mapping
Create a new PHP server and set a path mapping. This tutorial assumes your local Devilbox projectsto be in ./data/www of the Devilbox git directory:
Important
Macos Phpstorm Xdebug Not Working
Recall the path settings from the Assumption section and adjust if your configuration differs!
3. Ensure DBGp proxy settings are configured
Note

The following example show how to configure PHP Xdebug for PHP 5.6:
Create an xdebug.ini file (must end by .ini):
Copy/paste all of the following lines into the above created xdebug.ini file:
Important
Ensure you have created a Host address alias on MacOS pointing to 10.254.254.254 as stated in the prerequisites section above!
Note
Host os and editor specific settings are highlighted in yellow and are worth googling to get a better understanding of the tools you use and to be more efficient at troubleshooting.
Phpstorm Linux
Restarting the Devilbox is important in order for it to read the new PHP settings.Note that the following example only starts up PHP, HTTPD and Bind.
Phpstorm Download Mac
See also
Phpstorm Macos Catalina
Stop and Restart (Why do docker-composerm?)
