Setting a break when a value changes

  • Thread starter Thread starter Rodger Dusatko
  • Start date Start date
R

Rodger Dusatko

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?
 
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
 
Ken Tucker said:
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.

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
 
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.

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