Using Visual Studio 2008, 2010, 2012, 2013:
- Go to the Breakpoint window
- New -> Break at Function…
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.
I found this solution here on MSDN
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…