In my case adding Asp NET Application Development Features solved the problem.
I can develop Blazor Application with NET 8.0 but for a Web Form site Visual Studio 2022 gives the debug problem.
Problem
Platform: Windows 10 Pro, Visual Studio 2022
Solution
Install - Add ASP.NET 4.8 Feature
Result
Application run with debug.