-
-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ddev xdebug toggle
and ddev xdebug status
hang if xdebug is enabled and an IDE is listening for xdebug
#6191
Comments
Unable to replicate on VSCode. Perhaps we can replace "IDE" with "PHPstorm" in the title and description? Test
$ ddev xdebug toggle
Building project images...
...
Enabled xdebug
DDEV: |
The problem happens when you:
|
OK, Test
$ ddev xdebug
Enabled xdebug
$ ddev xdebug
Enabled xdebug
|
Thanks for the careful testing. I doubt that this is different between PhpStorm and vscode, but it may very well be different between macOS (where I tested) and Win/WSL2. In my testing I didn't exercise the website or breakpoints at all. I just |
Just tried on Gitpod to remove the Can anyone replicate it on Gitpod or Codespaces? |
Expected Behavior
ddev xdebug status
andddev xdebug toggle
should "just work" no matter what the situation.Actual Behavior
If an IDE is listening on port 9003, and xdebug is enabled, both of these hang.
Steps To Reproduce
ddev xdebug on
ddev xdebug status
orddev xdebug toggle
will hangAnything else?
More detail and ideas in
and following comments, thanks to @GuySartorelli
We can probably safely use
php --version | grep -i xdebug
for this more safely and prevent this problem.It would also be trivial to change to
XDEBUG_MODE=off php -r 'echo ini_get("xdebug.mode");'
, which would work for Xdebug 3, it might not be right for Xdebug 2.The text was updated successfully, but these errors were encountered: