I have a property:
public Foo My Foo{ get; set; }
I want to monitor set operation on it but break-point not settled on it, How to monitor it without changing code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(visual studio menu) Debug -> New Breakpoint -> Break at function…
getter:
ClassName.get_PropertyName()in your example, this would be
Class.get_MyFoo()setter:
ClassName.set_PropertyName(PropertyType)in your example, this would be
Class.set_MyFoo(Foo)