DEV Community

Discussion on: Turbocharged PHP Development with Xdebug, Docker & PHPStorm.

Collapse
 
yivi profile image
yivi

There is no need to change xdebug port for the reasons you say. There is no clash between xdebug port and php-fpm. The port is the one that the xdebug client (PhpStorm, in this case) will use to listen, and since the client and php-fpm are not running on the same machine (php-fpm runs within a container, the client on the container host), they never clash. The only possible reason to need to change this port is if you are debugging multiple PHP containers at the same time, since that means you'll have different xdebug clients running simultaneously on the host (and then you should assign a different listening port to each PhpStorm instance).