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

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.