Similar questions: One, Two. But this is not what I am looking for.
Similar questions, but said options are diabled: Three, Four, Five.
Situation: I want to identify the line where the value of the variable ApplianceState
changes to the value normal
. ApplianceState
is an enum
type and can have one of 4 different values. The project I am working on is quite huge and looking for it line-by-line could take days.
Question: Is there a way I can set a watch so that visual studio breaks at the line where the value of ApplianceState
changes to normal
?
I know I can set a conditional breakpoint, but that would mean I have to set a break point on certain line, and I don't want to do that.
Also, I have enabled native code
debugging and the menu item New Data Breakpoint
, in menu Debug
-> New Breakpoint
, is disabled (greyed out). So, I can't select it.