DebuggerStepThrough being ignored

后端 未结 2 1059
予麋鹿
予麋鹿 2021-01-18 00:32

I have noticed lately that the Visual Studio 2010 debugger keeps jumping into this method that is marked with the [DebuggerStepThrough] attribute.

2条回答
  •  粉色の甜心
    2021-01-18 01:19

    Are you debugging a release mode binary? It might be optimized and maybe just deterministic for the compiler at compile time so you won't be able to step in. Take a look at the IL generated and see if this is the case.

提交回复
热议问题