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

Commit 4444e2a

Browse files
authored
Merge pull request magento-commerce/devdocs#2912 from BaDos/MCLOUD-8642
MCLOUD-8642: Fix xdebug in MCD
2 parents e5e0dd1 + 2550129 commit 4444e2a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If you use Microsoft Windows, take the following steps before continuing:
3737
```yaml
3838
fpm_xdebug:
3939
hostname: fpm_xdebug.magento2.docker
40-
image: 'magento/magento-cloud-docker-php:7.4-fpm-1.2.0'
40+
image: 'magento/magento-cloud-docker-php:7.4-fpm-1.3.2'
4141
extends: generic
4242
volumes:
4343
- '.:/app:ro,delegated'
@@ -72,28 +72,28 @@ If you use Microsoft Windows, take the following steps before continuing:
7272
1. Change any Xdebug configuration using the `XDEBUG_CONFIG` option. For example, to change the xdebug.remote_port option:
7373

7474
```bash
75-
XDEBUG_CONFIG='remote_host=host.docker.internal remote_port=9002'
75+
XDEBUG_CONFIG='client_host=host.docker.internal client_port=9002'
7676
```
7777
On Linux systems, use the following command instead:
7878
```bash
79-
XDEBUG_CONFIG=remote_host=host.docker.internal remote_port=9002
79+
XDEBUG_CONFIG=client_host=host.docker.internal client_port=9002
8080
```
8181

8282
{:.procedure}
8383
To configure PhpStorm to work with Xdebug:
8484

8585
1. In your PhpStorm project, open the settings panel.
8686

87-
- _Mac OS X_—Select **File** > **Preferences**.
87+
- _Mac OS X_—Select **PhpStorm** > **Preferences**.
8888
- _Windows/Linux_—Select **File** > **Settings**.
8989

90-
1. In the _Settings_ panel, expand and locate the **Languages & Frameworks** > **PHP** > **Servers** section.
90+
1. In the _Settings_ panel, expand and locate the **PHP** > **Servers** section.
9191

9292
1. Click the **+** to add a `PHP Remote Debug` server configuration. The project name is in grey at the top.
9393

9494
1. Configure the following settings for the new server configuration:
9595

96-
- **Name**—Enter the name used for the `serverName` option from `PHP_IDE_CONFIG` value.
96+
- **Name**—Enter the name used for the `serverName` option from `PHP_IDE_CONFIG` value. By default, MCD use this value: `serverName=magento_cloud_docker`
9797
- **Host**—Enter `localhost`.
9898
- **Port**—Enter `80`.
9999
- **Debugger**—Select `Xdebug`.
@@ -102,7 +102,7 @@ To configure PhpStorm to work with Xdebug:
102102

103103
1. In the **Absolute path on the server** column, click ![Edit]({{ site.baseurl }}/common/images/cloud/cloud-install_docker_php-storm-edit.png){:width="15px"} and add a value to the `MAGENTO_ROOT` option. The default value is `/app`
104104

105-
1. Change the Xdebug port to 9001 in the **Languages & Frameworks** > **PHP** > **Debug** > **Xdebug** > **Debug Port** panel.
105+
1. Change the Xdebug port to 9001 in the **PHP** > **Debug** > **Xdebug** > **Debug Port** panel.
106106

107107
1. Click **Apply**.
108108

@@ -135,7 +135,7 @@ To debug CLI commands:
135135
- _Windows_—Select **TCP socket** and update **Engine Api Url** with `tcp://localhost:2375`.
136136
- _Mac OS X_—Select **Docker for Mac**. [_default_]
137137

138-
1. In the **Languages & Frameworks** > **PHP** > **Cli Interpreter** panel, click **[...]**.
138+
1. In the **PHP** > **Cli Interpreter** panel, click **[...]**.
139139

140140
1. Click **[+]** to add and configure a new Cli Interpreter from your Docker image. Update the following settings:
141141

0 commit comments

Comments
 (0)