Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Breakpoint on variable change
Message
De
15/02/2011 10:54:07
 
 
À
15/02/2011 10:37:42
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Divers
Thread ID:
01500247
Message ID:
01500252
Vues:
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)?
>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform