Debugging Blazor Web Assembly app in Visual Studio

Piyush Meshram 20 Reputation points
2024-02-23T14:30:27.26+00:00

Hi,
I am using Visual Studio 2022 professional version 17.7.4 (64 bit) I have created a blazor web assembly project with individual user accounts. When trying to debug Blazor application at first it worked but then once It stopped hitting breakpoints in the Client project, breakpoint triggers in the Server project just fine but not in the client. It says no symbols loaded so the breakpoint won't hit. What went wrong? I have tried deleting .vs folder and restarting the system. but it didn't work. how can I make it work again?

I

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,500 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
967 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ruikai Feng - MSFT 2,556 Reputation points Microsoft Vendor
    2024-02-26T03:43:29.3366667+00:00

    Hi,@Piyush Meshram,you could try follow these steps: Start debugging and check symbol load infomation: User's image

    check if .pdb file which is for symbols is in the correct location User's image

    If clean and rebuild the project still don't work for you ,create a project that could debug,check the options in properties-- build tab and compare with your current project: User's image

    Also,you may try follow this document


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Best regards,
    Ruikai Feng

    0 comments No comments