Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update debug.md - Add more details about the debug steps #26

Merged
merged 6 commits into from
Jul 28, 2023
Merged
Changes from all 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
12 changes: 6 additions & 6 deletions help/cloud-guide/test/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ The [PhpStorm](https://www.jetbrains.com/phpstorm/) IDE must be configured to pr

1. Click the **+** to add a server configuration. The project name is in gray at the top.

1. Configure the following settings for the new server configuration:
1. [Optional] Configure the following settings for the new server configuration. See [No debug server configured](https://www.jetbrains.com/help/phpstorm/troubleshooting-php-debugging.html#no-debug-server-is-configured) in the _PHPStorm_ documentation.

- **Name**—enter the same as the hostname. This value is used in and must match the value for `PHP_IDE_CONFIG` variable in [Debug CLI commands](#debug-cli-commands).
- **Host**—Enter `localhost`.
- **Port**—Enter `80`.
- **Name**—enter the same as the hostname. This value must match the value for the `PHP_IDE_CONFIG` variable in [Debug CLI commands](#debug-cli-commands) to use CLI for debugging.
- **Host**—enter the hostname.
- **Port**—Enter `443`.
- **Debugger**—Select `Xdebug`.

1. Select **Use path mappings**. In the _File/Directory_ pane, the root of the project for the `serverName` displays.
Expand Down Expand Up @@ -255,13 +255,13 @@ You need the following:

1. Open a terminal.

1. Clean up all SSH sessions.
1. Clean up all SSH sessions for each web node of the cluster.

```bash
ssh USERNAME@CLUSTER.ent.magento.cloud 'rm /run/platform/USERNAME/xdebug.sock'
```

1. Set up the SSH tunnel for Xdebug.
1. Set up the SSH tunnel for Xdebug for each web node of the cluster.

```bash
ssh -R /run/platform/USERNAME/xdebug.sock:localhost:9000 -N USERNAME@CLUSTER.ent.magento.cloud
Expand Down