- Copy task.json, launch.json to your
.vscodefolder or copy the content into the file you already have. - Adapt your
Dockerfileto be able to build indebug modeas in this one. - Run the task
Install VSDbgusing command palette. (CTRL+SHIFT+P or ⌘+⇧+P)
The default build task is StartDocker-Debug-Local which will start all the services in Docker with the exception of Service3. You will need to launch .NET Core Launch (Service3).
You can also start everything in Docer and debug it there using the tasks StartDocker-Debug and the launching Attach to Service3 in Docker.
StopDockerwill start all the services in docker.Restart Docker Serviceswill restart the composer services.buildwill just build Service3.Docker Service Logswill open a terminal showing the logs (using-f) of a given service defined in the inputserviceat the botton of tasks.json