Macos Phpstorm
Note
Download JetBrains PhpStorm 2019.2 for Mac free latest version offline setup for macOS. JetBrains PhpStorm 2019.2 for Mac is a professional application for handling the HTML, PHP and JavaScript codes and provides a powerful IDE for dealing with different web applications. در مورد: JetBrains PhpStorm 2019.3.4 Windows/Linux/macOS 03 فروردین 1399 در 18:16 Google Chrome 80.0.3987.149 Windows 10 x64 Edition دوستان سلام از روش زیر استفاده کنید%100 کرک موفقیت آمیز انجام میشه (برای ویندوز). PhpStorm and Xdebug – macOS / Homebrew After many years of Sublime Text and, latterly, Atom, I’ve decided to give an integrated IDE another look – this time PhpStorm. I’ve always dropped them in the past as they tended to crash (hello Zend Studio) and were slow as hell (hello again Zend Studio). Use xdebug with docker on macOS and PhpStorm To use xdebug with macOS and docker is quite, let´s call it tricky;) The following steps need to be proceed to get it working: use the config from the xdebug.ini wihtin your docker web container.
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.
Macos Phpstorm Xdebug Not Working
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
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:
Install Phpstorm
Create an xdebug.ini
file (must end by .ini
):
Phpstorm Download Mac
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 Macos Shortcuts
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 Community
See also
Macos Phpstorm Xdebug
Stop and Restart (Why do docker-composerm
?)