Debug get/set property

1. Select "Debug -> Windows -> Breakpoints" from VS menu. 

2. Click "New -> Break at Function...". 

3. For the get, type: ClassName.get_Counter()

    For the set, type: ClassName.set_Counter(int)

You'll get a "No Source Available" when the breakpoint is hit, but you'll get the calling location in the call stack.

 

原文地址:https://www.cnblogs.com/fdyang/p/3504879.html