Skip to content

Commit 0cf321d

Browse files
committed
First 2 steps to configure xdebug in PHPStorm are not longer needed because it is enough by just setting the debug port and server configuration
1 parent 5a8c738 commit 0cf321d

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ and this project adheres to [Semantic Version](http://semver.org/spec/v2.0.0.htm
1717

1818
* Documentation about how to sync `vendor` and `generated` volumes according to latest changes on [magento2-dockergento-console](https://github.com/ModestCoders/magento2-dockergento-console)
1919

20+
### Removed
21+
22+
* First 2 steps to configure xdebug in PHPStorm are not longer needed because it is enough by just setting the debug port and server configuration
23+
2024
## [1.2.0] - 30-08-2018
2125
### Added
2226

docs/xdebug_phpstorm.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,37 @@
11
# PHPStorm + Xdebug Setup
22

3-
## Enable xdebug
3+
## Enable Xdebug
44

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.
66

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)
88

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+
```
1812

19-
![cli_new_interpreter](img/cli_new_interpreter.png)
20-
21-
* Select CLI Interpreter from Docker
22-
23-
![interpreter_from_docker](img/interpreter_from_docker.png)
24-
25-
* Select `phpfpm` docker image
26-
27-
![interpreter_phpfpm_image](img/interpreter_phpfpm_image.png)
13+
## PHPStorm configuration
2814

29-
3. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug`
15+
1. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug`
3016
* Debug Port: 9001
3117

3218
![debug_port](img/debug_port.png)
3319

34-
4. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers`
20+
2. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers`
3521

3622
* Name: `localhost` (Same as `PHP_IDE_CONFIG` in `docker-compose.yml`)
3723
* Port: 8000
3824
* Mapping: `/Users/<username>/Sites/<project> -> /var/www/html`
3925

4026
![debug_server_mapping](img/debug_server_mapping.png)
4127

42-
5. Start Listening for PHP Debug connections
28+
3. Start Listening for PHP Debug connections
4329

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

4632
![PHPStorm Debug Listener](img/phpstorm_debug_listener.png)
4733

48-
6. Install and enable `Xdebug helper` plugin in Chrome
34+
4. Install and enable `Xdebug helper` plugin in Chrome
4935

5036
* [https://chrome.google.com/webstore/detail/xdebug-helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc)
5137

0 commit comments

Comments
 (0)