General information
Category:
Coding, syntax and commands
>>>>>>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......
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only