-
Notifications
You must be signed in to change notification settings - Fork 286
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
Can't run php-xdebug in docker(WSL2) #6993
Comments
Could you please supply more details of what you did, what you expected, the symptoms, and include a diagnostics id. Thank you. |
I execute docker-compose
But he cannot execute XDEBUG normally
|
i'm having the same issue. somehow xdebug never seems to pick up on the request from the browser. I've tried setting quote-linking related issue microsoft/WSL#5277 Update: made some progress using this guide:
I ended up adding a portproxy from *:9009 to my WSL's IP:9009 in PowerShell (run as Admin)
now i'm finally getting output in my /var/log/xdebug.log "remote_log" file in my WSL2 Ubuntu > Docker Ubuntu container my xdebug.ini:
my workspace launch.json:
|
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
I tried to set up a PHP development environment in Docker in WSL 2 mode, and it does not work with Xdebug
The text was updated successfully, but these errors were encountered: