Skip to content

Commit bd546a6

Browse files
committed
Update xdebug phpstorm documentation
1 parent 16c9a18 commit bd546a6

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

docs/img/debug_port.png

87.4 KB
Loading
48.1 KB
Loading

docs/img/xdebug_helper_config.png

34.9 KB
Loading

docs/img/xdebug_helper_enable.png

47.9 KB
Loading

docs/xdebug_phpstorm.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,40 @@
1919
* Select `phpfpm` docker image
2020

2121
![interpreter_phpfpm_image](img/interpreter_phpfpm_image.png)
22-
23-
3. `PHPStorm > Preferences > Languages & Frameworks > PHP > DBGp Proxy`
22+
23+
3. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug`
24+
* Debug Port: 9001
25+
26+
![debug_port](img/debug_port.png)
27+
28+
4. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug > DBGp Proxy`
2429

2530
* Host must match with the `REMOTE_HOST_IP` set on the [Xdebug configuration](xdebug.md)
2631

2732
![debug_dbgp](img/debug_dbgp.png)
2833

29-
4. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers`
34+
5. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers`
3035

3136
* Name: `localhost` (Same as `PHP_IDE_CONFIG` in `docker-compose.yml`)
3237
* Port: 8000
3338
* Mapping: `/Users/<username>/Sites/<project> -> /var/www/html`
3439

3540
![debug_server_mapping](img/debug_server_mapping.png)
41+
42+
6. Start Listening for PHP Debug connections
3643

44+
**NOTE**: Be sure to activate that only after setting the right debug port. Changes in Debug port are ignored once the listener has started.
3745

46+
![PHPStorm Debug Listener](img/phpstorm_debug_listener.png)
47+
3848

49+
7. Install and enable `Xdebug helper` plugin in Chrome
50+
51+
* [https://chrome.google.com/webstore/detail/xdebug-helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc)
3952

53+
![Xdebug Helper Config](img/xdebug_helper_config.png)
54+
![Xdebug Helper Enable](img/xdebug_helper_enable.png)
55+
4056

4157

4258

0 commit comments

Comments
 (0)