Skip to content
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

[Docs]: Add XDebug configuration info for WSL2 Support #929

Open
azvyae opened this issue Oct 31, 2022 · 2 comments
Open

[Docs]: Add XDebug configuration info for WSL2 Support #929

azvyae opened this issue Oct 31, 2022 · 2 comments

Comments

@azvyae
Copy link

azvyae commented Oct 31, 2022

What is wrong in the documentation?

Apparently there is only linux, mac, and windows tutorial for configuring XDebug to get that working properly. Long story short me and my team struggled how to configure xdebug.client_host based on linux/windows tutorial shown in the docs. VSCode running remote in WSL2 for example, it will use the hostname from the WSL2 instead of the localhost or docker.for.lin.internal host.

So i guess we should add more instruction to make sure people using WSL2 backend docker uses the hostname of the WSL instead for the xdebug.client_host configuration. You can get that information through command line:

wsl> hostname -I

What is missing in the documentation?

Information, WSL2 backend for Docker users should use WSL2 hostname for the xdebug.client_host, and the hostname could be retrieved from:

wsl> hostname -I

Are you willing to provide a PR to address this?

No response

@azvyae azvyae changed the title [Docs]: Add XDebug configuration for WSL2 Support [Docs]: Add XDebug configuration info for WSL2 Support Oct 31, 2022
@nickchomey
Copy link
Contributor

@erstevn Could you please elaborate a bit on this?

I get the following:

nick@DESKTOP:/mnt/c/Users/nick_$ hostname -I
172.19.93.122 172.17.0.1 172.21.0.1 172.16.238.1

Using docker network ls then docker network inspect, i see that 172.16.238.1 is for devilbox_app_net. Is that which I'd use?

Where would I put it?

@cytopia
Copy link
Owner

cytopia commented Jan 5, 2023

Let's continue in the aggregated thread here: #946

Repository owner locked and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants