-
Scenario: I'm trying to debug an authorization issue in my Aspire hosted web api. I'm using Microsoft.Identity.Web which has documentation that says I can enable subscribing to diagnostic events and then put breakpoints in the I don't think this is possible in Aspire apps, because as far as I can tell, for the breakpoints to work, symbols need to be loaded for Microsoft.Identity.Web. However, since I start my aspire app by setting the apphost as my startup app, and then some magic happens to actually debug my app, the first process that gets "debugged" seems to be the apphost project. So in the modules window of Visual Studio, I see all the modules of the apphost project, not of my actual API that I'm trying to debug. I don't see a way to select which process to show in the modules window. Am I missing something? I'm using VS Enterprise 17.13.2 if that matters. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
If you're in visual studio and you hit f5 all of the processes have the projects will have the debugger attached. You can select the right process using the process drop down and the list of modules should be filtered based on that process: