Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Breakpoint on variable change
Message
From
15/02/2011 10:37:42
 
 
To
15/02/2011 10:14:48
General information
Forum:
ASP.NET
Category:
Visual Studio
Miscellaneous
Thread ID:
01500247
Message ID:
01500250
Views:
43
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform