Getting "You need to find some_random_file_here.cs to view the source for the current call stack frame" since my last update to VS2022 17.7.0

KakCAT CAT 21 Reputation points
2023-08-10T20:10:51.6233333+00:00

Since I updated to VS2022, I'm continually getting the following message when before just an exception happened, or just stepping out of async functions, or stepping in functions I don't have the source to (before, the step in was just converted into a step through, which was far more convenient than current behavior)

"You need to find Task.cs to view the source for the current call stack frame"

How can I disable that?

Thanks in advance.

User's image

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

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,306 Reputation points Microsoft External Staff
    2023-08-11T03:31:09.0033333+00:00

    Hello @KakCAT CAT ,

    Welcome to Microsoft Q&A forum.

    In case some default VS settings were accidently changed during the updating process, please try to check following options or reset VS settings(run devenv /ResetSettings in VS developer command prompt):

    1.Tools > Options > Debugging > General > Enable Just My Code.

    2.Tools > Options > Debugging > General > Enable source server support.

    Please also try to clean your solution/project cache about debugging and check again.

    1.Close VS, delete the hidden .vs folder in solution folder, restart VS and rebuild the solution/project.

    2.Debug > Delete All Breakpoints > reset breakpoints.

    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.