Skip to content

I can't get WSL 2 Ubuntu + xdebug + VSC to work #734

Closed Answered by bflu
bflu asked this question in Help & Support
Discussion options

You must be logged in to vote

I just found out I had to add "hostname": "localhost" in .vscode/launch.json, so it should look like this:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9000,
            "pathMappings": {
                "/var/www/html": "${workspaceRoot}"
            },
            "hostname": "localhost"
        }
    ]
}

Everything works fine now

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bflu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant