Skip to content

Commit

Permalink
Fix documentation around Xdebug port on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust committed Nov 6, 2021
1 parent 71abee5 commit 90af7fa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,23 +398,21 @@ Otherwise, this project now automatically sets up Xdebug support with VS Code. I
4. Open `PhpStorm > Preferences > PHP > Debug` and ensure Debug Port is set to `9000,9003`.
5. Open `PhpStorm > Preferences > PHP > DBGp Proxy` and ensure Port is set to `9001`.
6. Open `PhpStorm > Preferences > PHP > Servers` and create a new server:
5. Open `PhpStorm > Preferences > PHP > Servers` and create a new server:
* For the Name, set this to the value of your domain name (ex. `magento.test`).
* For the Host, set this to the value of your domain name (ex. `magento.test`).
* Keep port set to `80`.
* Check the "Use path mappings" box and map `src` to the absolute path of `/var/www/html`.
7. Go to `Run > Edit Configurations` and create a new `PHP Remote Debug` configuration.
6. Go to `Run > Edit Configurations` and create a new `PHP Remote Debug` configuration.
* Set the Name to the name of your domain (ex. `magento.test`).
* Check the `Filter debug connection by IDE key` checkbox, select the Server you just setup.
* For IDE key, enter `PHPSTORM`. This value should match the IDE Key value set by the Chrome Xdebug Helper.
* Click OK to finish setting up the remote debugger in PHPStorm.
8. Open up `pub/index.php` and set a breakpoint near the end of the file.
7. Open up `pub/index.php` and set a breakpoint near the end of the file.
* Start the debugger with `Run > Debug 'magento.test'`, then open up a web browser.
* Ensure the Chrome Xdebug helper is enabled by clicking on it and selecting Debug. The icon should turn bright green.
Expand Down Expand Up @@ -452,10 +450,10 @@ Add the following line to the `/etc/sysctl.conf` file on your host:
vm.max_map_count=262144
```
To enable Xdebug on Linux, you'll also need to open port 9001 on the firewall by running:
To enable Xdebug on Linux, you'll also need to open port 9003 on the firewall by running:
```
sudo iptables -A INPUT -p tcp --dport 9001 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 9003 -j ACCEPT
```
### Blackfire.io
Expand Down

0 comments on commit 90af7fa

Please sign in to comment.