7

is there a way to prevent triggering of property getter code while watching variables in debug? something in the style of the DebuggerStepThrough attribute?

Yonatan Karni
  • 957
  • 2
  • 13
  • 32

2 Answers2

10

You can use the DebuggerBrowsableAttribute

DebuggerBrowsableAttribute Class

Jeff Cyr
  • 4,676
  • 1
  • 25
  • 40
8

Tools\Options\Debugging\General\"Enable property evaluation and other implicit function calls" - uncheck that box in VS.

Brian
  • 115,505
  • 16
  • 230
  • 296
  • 2
    Is there a way to do it on a single property? For instance by using Attributes? – tster Nov 19 '09 at 08:11
  • 1
    this definitely answers my question, however @jeff Cyr's answer matches my specific situation better - that's why I chose it. thanks! – Yonatan Karni Nov 19 '09 at 08:47