Every once in a while, when I try to step into a certain method call, the Visual Studio debugger first steps into the constructor of class Object
in namespace System
.
So, I have to single-step once more in order to be taken out of the Object
constructor and back to the method that I was intending to step into.
This is happening despite the fact that I do, of course, have “Tools” -> “Options” -> “Debugging” -> “General” -> “Enable Just My Code” checked.
This is happening as of a few Visual Studio updates ago. (I do not think it was happening in 2023.)
Does anyone know how I can prevent this from happening?
Note: the answer “Ditch Visual Studio” would, of course, be absolutely technically correct, but impractical, due to various unfortunate reasons having to do with politics, monopolies, unscrupulous marketing practices such as vendor-lock-in, etc.