Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix xdebug handling for sub processes #6138

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Fix xdebug handling for sub processes #6138

merged 1 commit into from
Oct 29, 2024

Conversation

webflo
Copy link
Contributor

@webflo webflo commented Oct 17, 2024

The xdebug session is dropped for drush subprocesses. Use export to make it persistent.

@weitzman
Copy link
Member

LGTM. I'll wait a day for feedback. Any chance you can chime in at #6137?

@claudiu-cristea
Copy link
Member

Not sure it's related. Working on contrib with https://github.com/ddev/ddev-drupal-contrib. No special config just following the docs. Drush is 13.3.0. When I try to debug:

$ ddev drush --xdebug en webform
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).

and it doesn't stop at breakpoints

@weitzman weitzman merged commit 4953b97 into drush-ops:13.x Oct 29, 2024
1 check passed
@weitzman
Copy link
Member

@claudiu-cristea - that looks like xdebug extension is not enabled in DDEV. Thats a prerequisite for using --xdebug.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants