Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Breakpoint on variable change
Message
From
15/02/2011 10:59:28
 
 
General information
Forum:
ASP.NET
Category:
Visual Studio
Miscellaneous
Thread ID:
01500247
Message ID:
01500254
Views:
50
>>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

Thanks Viv
Frank.

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

Click here to load this message in the networking platform