Can't set breakpoints on an auto-property setter ? Why?

后端 未结 4 1541
情书的邮戳
情书的邮戳 2020-12-08 14:48

Apparently VS 2008 does not allow setting a breakpoint just on the setter of an auto-property.

I.e. if I define an auto-property like this:

    publ         


        
4条回答
  •  执念已碎
    2020-12-08 15:13

    No you can't set a break point on them, but then what would you check? The variable for storage of the auto-property is only assigned at runtime and as such there isn't a variable for the debugger to show/access.

提交回复
热议问题