8

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
  • 977
  • 2
  • 13
  • 32

2 Answers2

10

You can use the DebuggerBrowsableAttribute

DebuggerBrowsableAttribute Class

Jeff Cyr
  • 4,774
  • 1
  • 28
  • 42
8

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

Brian
  • 117,631
  • 17
  • 236
  • 300
  • 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