I can detect when a variable changes, but it changes so often that its no use - what I want is to detect the moment that a variable becomes zero.
Thanks,
I can detect when a variable changes, but it changes so often that its no use - what I want is to detect the moment that a variable becomes zero.
Thanks,
That's not possible in Visual Studio. Visual Studio supports a number of debugging features in that particular area but I don't think you can combine them into a feature to get what you want
What you could do though is wrap all writes to your variable into a setter function. Then use a conditional breakpoint to break when the value changes to 0. I think this is the closest you're going to get to the feature you want.
You have to use one of these debuggers
1 - http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx
2 - The Good Old SoftICE, if you can find it anywhere
3 - http://www.sysersoft.com/updatelog.html
Also check new version OllyDbg (it says it supports hardware breakpoints)