Linux

How to use Visual Studio without Docker Desktop to debug a .NET Core application running in a container inside WSL

Lester Sanchez
This post provides a step-by-step guide to setting up a development environment that allows debugging .NET Core applications inside a Docker container running on WSL, using Visual Studio, without relying on Docker Desktop. It outlines the prerequisites, the process of installing and configuring Docker tools on WSL2, enabling SSH for remote debugging, and attaching Visual Studio to the running container for debugging. While this approach requires manual setup, it offers a cost-effective alternative to Docker Desktop for teams who prefer or need to avoid its licensing fees.