diff --git a/src/cloud/docker/docker-development-debug.md b/src/cloud/docker/docker-development-debug.md index cd5a69e484a..0e112d09796 100644 --- a/src/cloud/docker/docker-development-debug.md +++ b/src/cloud/docker/docker-development-debug.md @@ -23,8 +23,14 @@ If you use Microsoft Windows, take the following steps before continuing: 1. To enable Xdebug for your Docker environment, generate the Docker Compose configuration file in developer mode with the `--with-xdebug` option and any other required options, for example. ```bash - vendor/bin/ece-docker build:compose --mode --sync-engine="mutagen" developer --with-xdebug + vendor/bin/ece-docker build:compose --mode="developer" --sync-engine="mutagen" --with-xdebug ``` + + For Linux systems, you must use the `--set-docker-host` option to add the `host.docker.internal` entry to the `/etc/hosts` file for the `fpm_xdebug` container. + + ```bash + vendor/bin/ece-docker build:compose --mode="developer" --with-xdebug --set-docker-host + ``` This command adds the Xdebug configuration to your `docker-compose.yml` file.