vs 2022 v17.5 debuging problem

Farshad Valizade 381 Reputation points


i have recently upgrade my vs from 17.3 into 17.5.1

before when in my code in debug mode i had a problem it get error on that line

now it get error and go to .net class

see this picture


why vs goes to this file?why it doesn't show my wrong coded line?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,595 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,219 questions
{count} votes

Accepted answer
  1. Viorel 112.1K Reputation points

    Probably Visual Studio is configured to show and debug the .NET sources:

    Sometimes this is usefull.

    To disable it, try selecting "Enable Just My Code" from Options dialog, Debugging, General section. It can be opened from Tools menu. Maybe also adjust other options that are mentioned in article.

    You can also press the "Show Call Stack" link from your picture, and navigate to your code.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful