Is it possible to set up the debugger to stop when a condition is met at any point of the execution?

I am not asking about a conditional breakpoint at a given line. But let's say I have the variable x which holds an int value. This value should never be negative, but because of a bug this is happening. I can't find the line where this is happening, so I would like to "watch" that variable and set the condition x < 0. When true, the debugger should stop the program's execution at the line where that happens.

Is this even possible?


Please sign in to leave a comment.