Is it possible to make Visual Studio break whenever a given variable gets a specific value?
-
Hey all. Just wanted to ask if it is possible to make Visual Studio break whenever a given variable gets a specific value? Thanks in advance. -Rune Svendsen
-
Hey all. Just wanted to ask if it is possible to make Visual Studio break whenever a given variable gets a specific value? Thanks in advance. -Rune Svendsen
-
Hey all. Just wanted to ask if it is possible to make Visual Studio break whenever a given variable gets a specific value? Thanks in advance. -Rune Svendsen
Just modify the breakpoint to be a conditional breakpoint. Chris Meech "what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002. "Microsoft hasn't ever enforced its patents. Apparently they keep them for defensive reasons only. Or, they could be waiting 'til they have a critical mass of patents, enforce them all at once and win the game of Risk that they're playing with the world." Chris Sells Feb 18, 2003.
-
Hey all. Just wanted to ask if it is possible to make Visual Studio break whenever a given variable gets a specific value? Thanks in advance. -Rune Svendsen
Yes. Set your break-point. Then press the ALT-F9 key to open up the BreakPoints watch window. Select the DATA tab. You'll now have the ability to set an expression based on a value. If you click on the ADVANCE button on that data tab, you can get really fancy. D.