Information générale
Catégorie:
Code, syntaxe and commandes
>>>>>>What do you set in Condition. Can you give an example?
>>>>>
>>>>>Ctrl+Alt+B to bring up the Breakpoints window.
>>>>>Locate the breakpoint.
>>>>>Right-click, Condition...
>>>>>
>>>>>In the popup dialog box, select the option "Has changed".
>>>>
>>>>But that only checks if the value *has* changed at that specific line. Not the same thing as the ability to break *when* the value changes.
>>>
>>>
>>>You have to change the break location as well I think (am not at my computer).
>>
>>But wherever you put the break that line has to execute in the course of normal execution. Only in C++ can you set a breakpoint to fire *when* a variable changes so that you can, for example, examine the stack to see what caused it.
>
>
>
>Didn't know that was a limitation of .net.
>
>Okay... Hmmm... How about creating a class with operator overrides, replacing the instance variable with the class, and breaking there?
Possible. You could achieve the same by using a property and breaking on the setter - but either implies having to change production code for testing......
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement