How to initialized variables

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
 
M

Marina

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top