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.

Leave a Reply (Markdown is enabled)

Your email address will not be published. Required fields are marked *