Skip to content

xdebug broken on Windows/WSL #671

@usu

Description

@usu

The following commit breaks debugging on Windows/WSL setup:
fbcf816

Why?
remote_connect_back=1 instructs xdebug to connect to the server which triggered the network request.

If enabled, the xdebug.remote_host setting is ignored and Xdebug will try to connect to the client that made the HTTP request.

Source: https://xdebug.org/docs/all_settings#remote_connect_back

In Windows/WSL setup, the HTTP request is usually made from Windows host (Chrome, Postman, etc.), while the debugger is running in VS Code in the WSL host.

@manuelmeister @carlobeltrame
Was this setting necessary for PHPStorm? If yes, do we somehow find a solution that works for both setups without the need to have different Dockerfiles?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions