Brunov's blog

Sergey Vyacheslavovich Brunov's blog

C#: Auto-implemented property debugging

2012-01-26 16:35:31 Moscow time

Here is how it can be done using Visual Studio 2010:

  1. Go to the Breakpoint window.

  2. New -> Break at Function…

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

    For the set, type: ClassName.set_PropertyName(PropertyType)

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

Tags: auto-implemented properties C# debugging visual studio 2010