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.
When we previously needed to launch with only one project, 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 create a new .NET project and include both in a solution. Afterward, we will manually edit the debug configuration files.
Creating .NET solutions
We previously provisioned our first .NET project. To test the multi...