When does VB.net have Data Breakpoint?

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

VB6 has a wonderful debug tool: You can create a breakpoint which will break
when a varible changes. This tool help me greatly. I wonder when does vb.net
have Data Breakpoint? Anyone can tell me?

Peter
 
VB6 has a wonderful debug tool: You can create a breakpoint which will break
when a varible changes. This tool help me greatly. I wonder when does vb.net
have Data Breakpoint? Anyone can tell me?

Peter

Currently, it doesn't. You can fake it by putting exposing your
variable as a property, and then setting a break point in the properties
set accessor...
 
If you right click the breakpoint and choose properties, and then click
the Condition button, you can set the breakpoint to break when a
variable changes. I tested with a small test program and it seemed to
work.
 
If you right click the breakpoint and choose properties, and then
click the Condition button, you can set the breakpoint to break when
a variable changes. I tested with a small test program and it
seemed to work.

In VB6 you could set a breakpoint saying "break if this value changes", no
matter where. This could be useful to find out where it changes. In VB.Net
you have to set the breakpoint at a certain location - but the location is
what you don't know.

Armin
 
"Armin Zingler"
In VB6 you could set a breakpoint saying "break if this value changes", no
matter where. This could be useful to find out where it changes. In VB.Net
you have to set the breakpoint at a certain location - but the location is
what you don't know.

This is an option that I am too very much missing. Much more than edit and
continue.

Cor
 
Cor Ligthert said:
"Armin Zingler"


This is an option that I am too very much missing. Much more than
edit and continue.

I used the data break points above all in earlier VB times when a lot of
(chaotic) global variables had been used. ("Where the f... has this been
changed?". Now I know it must be in the encapsulating class...)

Armin
 
I used the data break points above all in earlier VB times when a lot of
(chaotic) global variables had been used. ("Where the f... has this been
changed?". Now I know it must be in the encapsulating class...)

Armin

This will force us to code much more OOP.

Peter
 
Back
Top