Visual Studio 2010 debugger steps over methods and doesn't stop at breakpoints

后端 未结 12 1582
终归单人心
终归单人心 2020-12-15 16:59

My Visual Studio 2010 debugger sometimes has a very strange behaviour...

Sometimes it doesn\'t stop at breakpoints, but when it stops, and I want to step into a meth

12条回答
  •  甜味超标
    2020-12-15 17:17

    Another source of confusion is iterator methods that use the yield return operator because they are rewritten by the C# compiler in such a way that stepping into them (F11) is kind of a "no-op".

    You must wait for the iteration to occur to break into the method's code.

提交回复
热议问题