Skip to content

Did anyone got xDebug working with WSL2? #1037

Closed Answered by withinboredom
henryfoster asked this question in Q&A
Discussion options

You must be logged in to vote

Most likely, your debugger isn't set to accept "external connections"; this is the setting in phpstorm:

I suspect vscode has a similar setting somewhere, but I am not familiar with it.

Also, for wsl2/docker, setting remote host to xdebug://nameserver or xdebug://gateway (the former worked best for me in WSL2's mirrored networking mode).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@henryfoster
Comment options

Answer selected by henryfoster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants