I 'm suddenly having troubles with running in debug mode(F5). When I hit F5 or click on the Run button the application starts, but stops suddenly

mtewary 0 Reputation points
2023-03-18T10:39:22.26+00:00
    • I have one vs 2022 blazor web assembly project.
  • It stops automatically when i run it locally.
  • Not able to debug blazor UI (razor.cs) pages.
  • I set launch browser setting to false and so able to debug backened api code but still not able to debug blazor UI (razor.cs) pages.

It was running fine till 2 days back, suddenly started facing this issue.

I am stuck on this, any help will be appreciated

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,306 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.
1,012 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
    2023-03-20T08:58:25.7933333+00:00

    Hello @mtewary ,

    Welcome to Microsoft Q&A forum.

    Do you still remember what you have modified these days? Did VS prompt any error message?

    Please first try to remove the hidden .vs folder and other project cache(bin, obj) files/folders in your solution/project folder and then rebuild => run the project again.

    If Visual Studio has been updated these days, please try to rollback VS to your previous used version and test again.

    Please also try to reset VS settings by running devenv /ResetSettings in Developer Command Prompt for Visual Studio 2022.

    Besides, does this issue appear in a newly created project? If it appears in a newly created project, please try to repair Visual Studio from VS Installer.

    Feel free to let us know if it works.

    Sincerely,

    Tianyu


    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.


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.