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

Click here to load this message in the networking platform