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

Commit b1d1b60

Browse files
oshmyheliukBarny Shergoldjeff-matthews
authored
MCLOUD-6430: Xdebug not working on Magento Cloud Docker 1.1 (#7810)
* MCLOUD-6430: Xdebug not working on Magento Cloud Docker 1.1 * Update src/cloud/docker/docker-development-debug.md Co-authored-by: Barny Shergold <[email protected]> * Update src/cloud/docker/docker-development-debug.md Co-authored-by: Jeff Matthews <[email protected]> Co-authored-by: Barny Shergold <[email protected]> Co-authored-by: Jeff Matthews <[email protected]>
1 parent 7a32dc7 commit b1d1b60

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/cloud/docker/docker-development-debug.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ If you use Microsoft Windows, take the following steps before continuing:
2323
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.
2424

2525
```bash
26-
vendor/bin/ece-docker build:compose --mode --sync-engine="mutagen" developer --with-xdebug
26+
vendor/bin/ece-docker build:compose --mode="developer" --sync-engine="mutagen" --with-xdebug
2727
```
28+
29+
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.
30+
31+
```bash
32+
vendor/bin/ece-docker build:compose --mode="developer" --with-xdebug --set-docker-host
33+
```
2834

2935
This command adds the Xdebug configuration to your `docker-compose.yml` file.
3036

0 commit comments

Comments
 (0)