Skip to content

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

@azvyae

Description

@azvyae

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions