This page will describe how to configure xdebug for PHPStorm
- Add XDEBUG_HOST
and XDEBUG_PORT
to .env file in your docker folder
Where XDEBUG_HOST
is your host machine IP address, that is accessible from the PHP container (check ifconfig/ipconfig)
- Add XDEBUG_HOST
and XDEBUG_PORT
to your docker-compose file
- Configure file mapping between your local copy and the files inside the container
Go to PHPStorm settings and type Servers
into search input
Create a new configuration that should have the host set to your local translate5 host value (port as well)
Set the root folder of your copy of translate5 on the left (see screenshot) to be mapped to /var/www/translate5
on the right (see screenshot)