I have just installed WSL2 on my dev machine over the weekend. I am now trying to set myself up to debug WordPress plugins from VS.Code.
I have the two containers set up (WordPress and DB) and it’s all running just fine. However, I am unclear on how to attach to a container, so I can debug.
I have the Docker and Remote WSL extensions run. I can see the containers from VS.Code and can use “Attach Visual Studio Code” (context menu on the WP container). I launch that and see a new instance of VS.Code running. But the Explorer view has just the following:
It is unclear to me how / where I can find my actual WordPress folders so I can browse, set breakpoints, etc.
Any pointers would be appreciated.