1

In my solution Visual Studio Community 2022, In one solution, I have different projects (class library, Web API and one Blazor Web Assembly). On Startup there are two projects

  1. WebAPI
  2. Blazor Web Assembly

I am using Mudblazor in Blazor Web Assembly project. I have put different break points in different projects and all projects run in Debug mode. All the break points are hitting well except in Blazor project. I am getting following information on break point. Information of break point in Debug mode

I have looked for a solution from a number of websites but found no solution. I also went through the following post but no benefit: How do I remedy "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning? One more thing to share is that during solution execution I cannot find project name in Debug -> Window -> Modules I will be grateful, If someone please suggest a useful solution. Thanks

starball
  • 20,030
  • 7
  • 43
  • 238
Shakil Ahmed
  • 107
  • 1
  • 7
  • There are many possible factors that result in this issue. From the point of view of project settings, you can try to set project as default [Startup Project](https://learn.microsoft.com/en-us/previous-versions/a1awth7y(v=vs.140)?redirectedfrom=MSDN)  or clean/rebuild your project or delete  your breakpoints and set again. From the point view of specific project ` blazor webassembly `,it may has to do with your project code when using some class or method .You can provide minimal reproducible example that can help others to test and give  more accurate workaround. – Dou Xu-MSFT Jan 19 '23 at 09:18

1 Answers1

0

There are 7 console applications and 2 WebAssembly projects. I have just changed Optimize code setting as Release and breakpoints are getting hit.

enter image description here

I don't know the logic behind it but it works. I will go through as it is for the time being as project's deadline is approaching too fast.

Shakil Ahmed
  • 107
  • 1
  • 7