Debugging in containers
The container images can be started on demand to run the microservices. However, producing a new Docker image that internally builds and publishes release code will not offer the debugging of the code we are looking for!
To overcome this, we need to run the development code unpublished, using a Debug build, quickly and dynamically inside a container with a debugger attached. We must understand how Visual Studio modifies the container images to support debugging, and how this fits into the overall orchestration of all components, including the service component.
Debugging individual microservices
While Visual Studio did a fantastic job setting up the Dockerfile for release builds, it does not use this entire file definition when debugging code in a container.
The additional configurations added to the project enable exactly the kind of fast and dynamic environment we need. Under the project launch profiles, you should now see a new one added by Visual...