You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Removed 'magento' MySQL user, password of 'root' user removed
- Database for integration tests are created by default
- Added script for clearing Magento cache from host command line. Added related documentation
- Configured XDebug to allow remote debugging. Added related documentation
Go to 'vagrant-magento' created earlier and run in command line:
101
+
102
+
```
103
+
vagrant ssh -c 'magento_clear_cache'
104
+
```
105
+
106
+
### Debugging with XDebug
107
+
108
+
XDebug is already configured to connect to the host machine automatically. So just:
109
+
110
+
1. Set XDEBUG_SESSION=1 cookie (e.g. using 'easy Xdebug' extension for Firefox). See [XDebug documentation](http://xdebug.org/docs/remote) for more details
111
+
1. Start listening for PHP Debug connections in PhpStorm. See how to [integrate XDebug with PhpStorm](https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html#integrationWithProduct)
112
+
1. Set beakpoint or set option in PhpStorm menu 'Run -> Break at first line in PHP scripts'
Copy file name to clipboardExpand all lines: docs/performance-issue-on-windows-hosts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,4 @@ Even though there are no out-of-the-box solution which satisfies our developer e
31
31
- does not break developer experience
32
32
- has negligible performance degradation caused by files synchronization
33
33
34
-
To solve performance degradation problem, local copy of the project should be stored on host (for good indexing performance in IDE) and on the guest (to avoid delays caused by PHP requesting remote files via network). This cannot be achieved with built-in Vagrant synchronization capabilities. However, this can be done using one-way PHPStorm project deployment to remote host or by using rsync. This approach has one drawback: all files generated on the guest, will not be visible to IDE and as a result autocomplete for auto-generated classes will be unavailable. This issue can be overcome by enabling two-way Vagrant synchronization for those files which should be downloaded from guest OS.
34
+
To solve performance degradation problem, local copy of the project should be stored on host (for good indexing performance in IDE) and on the guest (to avoid delays caused by PHP requesting remote files via network). This cannot be achieved with built-in Vagrant synchronization capabilities. However, this can be done using one-way PhpStorm project deployment to remote host or by using rsync. This approach has one drawback: all files generated on the guest, will not be visible to IDE and as a result autocomplete for auto-generated classes will be unavailable. This issue can be overcome by enabling two-way Vagrant synchronization for those files which should be downloaded from guest OS.
Copy file name to clipboardExpand all lines: docs/phpstorm-configuration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This solution is applicable to any Vagrant configuration for Magento instance, s
12
12
end
13
13
```
14
14
15
-
1. Open your project on host machine in PHPStorm and set up deployment configuration, which will upload to the guest machine everything except for those folders which are synchronized by Vagrant. :information_source: Note that rsync can be used instead of PHP Storm deployment.
15
+
1. Open your project on host machine in PhpStorm and set up deployment configuration, which will upload to the guest machine everything except for those folders which are synchronized by Vagrant. :information_source: Note that rsync can be used instead of PHP Storm deployment.
16
16
1. Go to Tools -> Deployment -> Configuration
17
17
18
18

@@ -34,7 +34,7 @@ This solution is applicable to any Vagrant configuration for Magento instance, s
34
34
35
35

36
36
37
-
1. Add remote paths excluded from synchronization by PHPStorm. You should add those paths which are specified in Vagrant config for synchronization.
37
+
1. Add remote paths excluded from synchronization by PhpStorm. You should add those paths which are specified in Vagrant config for synchronization.
0 commit comments