views:

67

answers:

2

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

+5  A: 

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

Brian
Is there a way to do it on a single property? For instance by using Attributes?
tster
@Brian - thanks, that's helpful.@tster - thanks, I was just about to make the same comment :)
Yonatan Karni
this definitely answers my question, however @jeff Cyr's answer matches my specific situation better - that's why I chose it. thanks!
Yonatan Karni
+3  A: 

You can use the DebuggerBrowsableAttribute

DebuggerBrowsableAttribute Class

SelflessCoder