How to initialized variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • leotricaspio

    #1

    How to initialized variables

    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

    --
    Leo
  • Marina

    #2
    Re: How to initialized variables

    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.

    "leotricasp io" <leotricaspio@o nline.nospam> wrote in message
    news:C118B89E-8803-48A9-BA96-F69587D8E403@mi crosoft.com...[color=blue]
    > 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[/color]
    previous[color=blue]
    > 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
    >
    > --
    > Leo[/color]


    Comment

    Working...