WSL handbook
Dinglun Alex Zhou 2021-10-26 wsllinuxwindowshandbook
# can not create container
file docker-compose line 14
./:/srv/DDX/
=> ./:/srv/DDX
# enable xdebug in Vscode
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"hostname": "0.0.0.0",
"name": "Xdebug for Docker",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/srv/DDX": "${workspaceFolder}"
}
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use powershell get
wsl_ip
addresswsl hostname -I
go to docker file
"xdebug.remote_host={{wsl_ip}}"
1