Tag Archives: debugging

C#: Auto-implemented property debugging.

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.