Setting a break when a value changes

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

    Setting a break when a value changes

    In VB .NET I am having problems setting breaks. I want the break to be
    independant of any single function:
    for example:
    err.number
    or global variables

    When I try to set a break with the 'Data' tab, It doesn' allow me and says
    that Basic doesn't support data breakpoints.

    How can I set the breaks for variable changes in VB?


  • Ken Tucker [MVP]

    #2
    Re: Setting a break when a value changes

    Hi,

    Add a break point to a line. Right click on the breakpoint and
    select break point properties. Press the condition button and type in the
    variable name as the condition and select the when value changes option.
    Note the program will only hit the breakpoint when the value has changed on
    that line.

    Ken
    ----------------
    "Rodger Dusatko" <rodger@dusatko .com> wrote in message
    news:c9c9ot$fit $01$1@news.t-online.com...[color=blue]
    > In VB .NET I am having problems setting breaks. I want the break to be
    > independant of any single function:
    > for example:
    > err.number
    > or global variables
    >
    > When I try to set a break with the 'Data' tab, It doesn' allow me and says
    > that Basic doesn't support data breakpoints.
    >
    > How can I set the breaks for variable changes in VB?
    >
    >[/color]


    Comment

    • Armin Zingler

      #3
      Re: Setting a break when a value changes

      "Ken Tucker [MVP]" <vb2ae@bellsout h.net> schrieb[color=blue]
      > Hi,
      >
      > Add a break point to a line. Right click on the breakpoint
      > and
      > select break point properties. Press the condition button and type
      > in the variable name as the condition and select the when value
      > changes option. Note the program will only hit the breakpoint when
      > the value has changed on that line.[/color]

      Right, but usually one wants to *find out* where the value changes by
      setting a data breakpoint. This was possible in VB6, but isn't in VB.Net
      anymore.


      --
      Armin

      How to quote and why:



      Comment

      • Armin Zingler

        #4
        Re: Setting a break when a value changes

        "Ken Tucker [MVP]" <vb2ae@bellsout h.net> schrieb[color=blue]
        > Hi,
        >
        > Add a break point to a line. Right click on the breakpoint
        > and
        > select break point properties. Press the condition button and type
        > in the variable name as the condition and select the when value
        > changes option. Note the program will only hit the breakpoint when
        > the value has changed on that line.[/color]

        Right, but usually one wants to *find out* where the value changes by
        setting a data breakpoint. This was possible in VB6, but isn't in VB.Net
        anymore.


        --
        Armin

        How to quote and why:



        Comment

        • Rodger Dusatko

          #5
          Re: Setting a break when a value changes

          > Right, but usually one wants to *find out* where the value changes by[color=blue]
          > setting a data breakpoint. This was possible in VB6, but isn't in VB.Net
          > anymore.[/color]

          How sad! Is there not anything comparable? What about catching errors (on
          any error) (i.e. when err.number changes?)

          "Armin Zingler" <az.nospam@free net.de> schrieb im Newsbeitrag
          news:40b9e177$1 $26212$9b622d9e @news.freenet.d e...[color=blue]
          > "Ken Tucker [MVP]" <vb2ae@bellsout h.net> schrieb[color=green]
          > > Hi,
          > >
          > > Add a break point to a line. Right click on the breakpoint
          > > and
          > > select break point properties. Press the condition button and type
          > > in the variable name as the condition and select the when value
          > > changes option. Note the program will only hit the breakpoint when
          > > the value has changed on that line.[/color]
          >
          > Right, but usually one wants to *find out* where the value changes by
          > setting a data breakpoint. This was possible in VB6, but isn't in VB.Net
          > anymore.
          >
          >
          > --
          > Armin
          >
          > How to quote and why:
          > http://www.plig.net/nnq/nquote.html
          > http://www.netmeister.org/news/learn2quote.html
          >[/color]


          Comment

          Working...