Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Breakpoint on variable change
Message
From
15/02/2011 10:54:07
 
 
To
15/02/2011 10:37:42
General information
Forum:
ASP.NET
Category:
Visual Studio
Miscellaneous
Thread ID:
01500247
Message ID:
01500252
Views:
40
>>Hi,
>>
>>I want to work out what is setting a variable to a particular value. Is there a way to set a breakpoint on something like this:
>>
>>MyVar = 1
>>
>>and then have the debugger stop when MyVar = 1 changes to false (or true)?
>
>Hi Frank,
>
>Set your breakpoint. Then right-click on the red dot. Choose "Condition... " from the context menu. Type "MyVar = 1" in the box and ensure "Is True" is selected. Or, select "Has Changed" to break when it changes.
>
>Bruce

Thanks, at first attempt it hasn't helped me, but to be honest I didn't try too hard as I worked out where it was changing. I'll remember this so that I can try it again.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform