Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Breakpoint on variable change
Message
From
15/02/2011 10:40:03
 
 
To
15/02/2011 10:14:48
General information
Forum:
ASP.NET
Category:
Visual Studio
Miscellaneous
Thread ID:
01500247
Message ID:
01500251
Views:
41
>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)?

You can't do this in the way you could in VFP - you have to select a specific breakpoint. But you can set a condition on the breakpoint:
Select Debug/Windows/Breakpoint from the menu. Right click on an item and choose 'Condition'
This will work if MyVar is a property. If it's not then you could temporarily make it one.....

See:http://support.microsoft.com/kb/308469
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform