|
1 | 1 | # PHPStorm + Xdebug Setup |
2 | 2 |
|
3 | | -## Enable xdebug |
| 3 | +## Enable Xdebug |
4 | 4 |
|
5 | | -`xdebug` needs to be enabled inside the `phpfpm` container. You can do that as explained in `magento2-dockergento-console` |
| 5 | +Xdebug needs to be enabled inside the `phpfpm` container. |
6 | 6 |
|
7 | | -* workflow -> [enable xdebug](https://github.com/ModestCoders/magento2-dockergento-console/tree/master/docs/workflow#xdebug) |
| 7 | +* You can do that as explained in `magento2-dockergento-console` -> [enable xdebug](https://github.com/ModestCoders/magento2-dockergento-console/tree/master/docs/workflow#xdebug) |
8 | 8 |
|
9 | | -## PHPStorm configuration |
10 | | - |
11 | | -1. `Build, Execution, Deployment > Docker` |
12 | | - |
13 | | - * Add new docker profile (i.e dockergento) |
14 | | - |
15 | | -2. `PHPStorm > Preferences > Languages & Frameworks > PHP` |
16 | | - |
17 | | - * Add new CLI interpreter |
| 9 | + ``` |
| 10 | + dockergento debug-enable |
| 11 | + ``` |
18 | 12 |
|
19 | | -  |
20 | | - |
21 | | - * Select CLI Interpreter from Docker |
22 | | - |
23 | | -  |
24 | | - |
25 | | - * Select `phpfpm` docker image |
26 | | - |
27 | | -  |
| 13 | +## PHPStorm configuration |
28 | 14 |
|
29 | | -3. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug` |
| 15 | +1. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug` |
30 | 16 | * Debug Port: 9001 |
31 | 17 |
|
32 | 18 |  |
33 | 19 |
|
34 | | -4. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers` |
| 20 | +2. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers` |
35 | 21 |
|
36 | 22 | * Name: `localhost` (Same as `PHP_IDE_CONFIG` in `docker-compose.yml`) |
37 | 23 | * Port: 8000 |
38 | 24 | * Mapping: `/Users/<username>/Sites/<project> -> /var/www/html` |
39 | 25 |
|
40 | 26 |  |
41 | 27 |
|
42 | | -5. Start Listening for PHP Debug connections |
| 28 | +3. Start Listening for PHP Debug connections |
43 | 29 |
|
44 | 30 | **NOTE**: Be sure to activate that only after setting the right debug port. Changes in Debug port are ignored once the listener has started. |
45 | 31 |
|
46 | 32 |  |
47 | 33 |
|
48 | | -6. Install and enable `Xdebug helper` plugin in Chrome |
| 34 | +4. Install and enable `Xdebug helper` plugin in Chrome |
49 | 35 |
|
50 | 36 | * [https://chrome.google.com/webstore/detail/xdebug-helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc) |
51 | 37 |
|
|
0 commit comments