Debugging a Dapr multi-project solution
In this section, we will configure debugging for multiple ASP.NET projects. In most cases, a .NET solution is developed in different projects, each representing a microservice or another component of the overall architecture. This is even more true in Dapr, which emphasizes and facilitates the development of microservices.
In this context, we leverage the VS Code capability to debug multiple projects at once. For more details, see the documentation at https://code.visualstudio.com/docs/editor/debugging#_multitarget-debugging.
Previously, with only one project we needed to launch, we leveraged a scaffold task in the VS Code Dapr extension to add Dapr support in the launch.json
and task.json
files. This time, we will manually edit the files.
Creating .NET solutions
We previously provisioned our first .NET project. To test the multi-project debug configuration, we'll add a second Dapr project to our environment—in a great...