-
-
Notifications
You must be signed in to change notification settings - Fork 641
OOTB Xdebug support for PhpStorm #94
Comments
All of these variables can easily be overridden inside your
|
Brilliant. Thank you! |
Why wouldn't xdebug just be enabled by default? |
@kevinquillen - Because Xdebug incurs a non-trival amount of overhead, and I (and many others) like to develop without it enabled most of the time, and only enable it as-needed. The two reasons for this (for me) are:
|
@kevinquillen - I've updated the documentation here: http://docs.drupalvm.com/en/latest/extras/xdebug/ |
@geerlingguy with the out of the box configuration provided by Drupal VM, have you gotten PhpStorm to debug Behat scripts running in the VM? I have a remote Behat configuration set up, and it's using Drupal VM's php binary, so I have no issues running Behat tests from within Drupal VM using PhpStorm. But debugging said configuration doesn't work. According to this, |
@kostajh - I, personally, have not, as I don't use PhpStorm :( But I'm guessing someone has, and hopefully you can find that person to help; did anything in the docs.drupalvm.com section on xdebug help? |
@geerlingguy no, unfortunately. The same would apply for Sublime Text though. (Assuming that's what you are using.) Are you able to execute a PHP script from the command line within the VM, and have Sublime Text's XDebug client connect? |
@kostajh - Last time I did was at least a few months ago, but when I did, I did it using the instructions in the docs (http://docs.drupalvm.com/en/latest/extras/xdebug/)... so something may have changed, or a port might not be open that's required... something like that. |
I'm not sure if Drupal VM already supports this, but I had to do a bit of work in order to get Xdebug talking to PhpStorm.
I had to alter my /etc/php5/apache2/conf.d/xdebug.ini as follows:
Is there any chance of having this be Drupal VM's default configuration, or somehow make it very easy to configure Xdebug this way in config.yml?
The text was updated successfully, but these errors were encountered: