Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

MCLOUD-6430: Xdebug not working on Magento Cloud Docker 1.1 #7810

Merged
merged 3 commits into from
Sep 3, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/cloud/docker/docker-development-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, the option `--set-docker-host` also needs to be added for automatically adding `host.docker.internal` into the `/etc/hosts` 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.

Expand Down