How to initialized variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

This is a silly question.
When I'm debugging, I store textboxes values into global or module
variables. (C#)
But when I just start debugging, in the watch window I can see the previous
values of the variables, that I set the previous time I was debugging.
I now I can force dispose in the end, but at the beginning, how is this
handled?

Please advise,

Tks
 
This is probably before any breakpoints are hit? And it would be because,
this is what the debugger does - it does not re-evaluate that until a
breakpoint is hit - otherwise debugging would be much much much slower, as
the debugger would have to re-evaluate every watch expression after every
line of code - even if the breakpoint is 10K lines later.
 
Back
Top