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?

2 Answers 2

10

You can use the DebuggerBrowsableAttribute

DebuggerBrowsableAttribute Class

Sign up to request clarification or add additional context in comments.

Comments

8

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

2 Comments

Is there a way to do it on a single property? For instance by using Attributes?
this definitely answers my question, however @jeff Cyr's answer matches my specific situation better - that's why I chose it. thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.