Alex‘s Blog

vuePress-theme-reco Dinglun Alex Zhou    2020 - 2021
Alex‘s Blog

Choose mode

  • dark
  • auto
  • light
Home
Category
  • Article
  • OWASP
  • Study Note
  • WSL
  • Handbook
  • Profile
Resume
Contact
  • GitHub
  • LinkedIn
  • Email
author-avatar

Dinglun Alex Zhou

19

Article

18

Tag

Home
Category
  • Article
  • OWASP
  • Study Note
  • WSL
  • Handbook
  • Profile
Resume
Contact
  • GitHub
  • LinkedIn
  • Email
  • WSL

    • WSL handbook

WSL handbook

vuePress-theme-reco Dinglun Alex Zhou    2020 - 2021

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
  • use powershell get wsl_ip address wsl hostname -I

  • go to docker file

    • "xdebug.remote_host={{wsl_ip}}"
      
      1