docker-compose.yml
file looks like this:PHP_EXTENSION_XDEBUG
environment variable is specific to the thecodingmachine/php
. It automatically configures Xdebug for the container.PHP Web Page
..
to add a debug serverdocker_[your_project_name]
Use path mappings
docker-compose.yml
, just add those environment variablesdocker-compose.yml
.For more details, please look at this TheCodingMachine Docker PHP images.remote_port=[your_xdebug_port]
. Otherwise, add your custom Xdebug portStart Listening for PHP Debug connections
docker exec -ti [container_id] bash
and run your script manually.Preferences..
> Languages and Frameworks
> PHP
..
for openning the remote PHP interpreterFrom Docker, Vagrant, VM, Remote..
/opt/project
in the container, just change it to /var/www/html