Enabling Xdebug causes drush to hang on subcommand #1534
Steps to reproduce:
Using an IDE (PhpStorm), enable the Xdebug listener but do not set a breakpoint.
Drush will hang after "No database updates required," while it is running a cache-rebuild. PhpStorm does not stop at any breakpoints.
Turn off the IDE's Xdebug listener and the command will complete as expected.
Or, remove the XDEBUG_CONFIG variable from the environment and drush will complete as expected (since Xdebug is effectively turned off.)
The only possibly-related issue I can find on something like this is #1378, but that seems rather different.
The text was updated successfully, but these errors were encountered:
Without meaning to necro this thread, thought I'd drop in something else that I learned while trying to get drush to play nicely with Xdebug while the listener was enabled in PHPStorm.
Increasing the number of simultaneous connections did not solve this for me (although I've left them increased for now). What did it for me was disabling both
Hope this helps someone.