When does VB.net have Data Breakpoint?

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
 
T

Tom Shelton

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

Chris Dunaway

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

Armin Zingler

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
 
C

Cor Ligthert

"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
 
A

Armin Zingler

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
 
P

Peter

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
 

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