Visual Studio 2022 debug is VERY slow

Serge Gusev 10 Reputation points
2023-05-23T10:21:54.27+00:00

One simple operation like

var state = StateEnum.Success

could take about 5 seconds

I'm not sure, but seems to me it is started after last update.

What should I check to fix this problem?

PS. All extensions are already disabled.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,096 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,561 Reputation points Microsoft Vendor
    2023-05-24T09:40:48.6833333+00:00

    Hello @Serge Gusev ,

    Welcome to Microsoft Q&A forum.

    I may suggest you first try to clean cache(project cache and VS cache) => remove the hidden .vs folder in your solution folder and remove the ComponentModelCache folders in this directory: C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX, after that rebuild your project and debug again.

    Not sure if any installed extensions affect VS(may be not fully compatible with updated version of VS 2022), I know you have disabled them, if possible, you can try to uninstall them, test again and then reinstall them.

    Since this issue appeared after you updated Visual Studio, as a temporary workaround, you may consider downgrading Visual Studio 2022 to a previous version and waiting for a new version of VS 2022 release.

    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.

    4 people found this answer helpful.

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.