VS.NET Debugging: Variable watch
Posted on 2004-04-21
I know in VisualAge for Java I used to be able to put a breakpoint on a variable...not at a particular point in the code, but in a debugging window, and the code would break as soon as that variable was changed, or became a certain value.. (useful for loops if you want to break a loop when it hits 100 iterations etc, or a boolean field validating to true).
yes.. I know I could just put a breakpoint on this line: If var = true then var = true or something like that..but you won't get any points for an answer like that.
Does anyone know? Even a work-around would be somewhat satisfactory.. (Ie i tried declaring the bool value 'WithEvents' but it wouldn't let me).