Visual Studio. Notify when a property of an object is being modified

0

I would like to know if there is any configuration option or something to do debug on an object when it is being modified, I do not mean an object created by the user since that is easy to encapsulate the properties, I mean for example if the text of a label is modified during the execution of the program that stops the execution in the code line where this occurs. P.D: I know that it is possibly not a question of code but I think that if there is a positive answer it can also be interesting for other people, that's why I ask it here.

    
asked by U. Busto 22.05.2017 в 10:56
source

1 answer

1

Unfortunately, the option exists but not for managed code. There are some options that can be used, however, such as conditional breakpoints (you can set a breakpoint to fire only if a variable has changed) or put the breakpoint in the setter of the property or in the case of a control in the corresponding event ( TextChanged in the case of a TextBox or Label ).

    
answered by 22.05.2017 / 11:07
source