>hi,
>
>i've tried to do some tracing with the debugger of vs. i used the 'Watch' and 'Locals' to monitor my variables at the same time using the 'Step Into' to see which lines affect the variables in my 'Watch' list. strange thing is my variable 'Name' changes values but the statements that were executed via the 'Step Into' did not pass any statement that would have changed the value of 'Name'. where should i look to find the code that affects my 'Name' variable?
>
>thanks.
Bobby,
You are probably seeing a change in scope, not value. Based on the variable name, the watch window will display the value of the variable matching that name with the smallest scope. Which is the same way that .NET handles the scope of variables with the same name.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement