By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,201 Members | 956 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,201 IT Pros & Developers. It's quick & easy.

Setting a break when a value changes

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <ro****@dusatko.com> wrote in message
news:c9*************@news.t-online.com...
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?

Nov 20 '05 #2

P: n/a
"Ken Tucker [MVP]" <vb***@bellsouth.net> schrieb
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

Nov 20 '05 #3

P: n/a
"Ken Tucker [MVP]" <vb***@bellsouth.net> schrieb
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

Nov 20 '05 #4

P: n/a
> 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?)

"Armin Zingler" <az*******@freenet.de> schrieb im Newsbeitrag
news:40***********************@news.freenet.de... "Ken Tucker [MVP]" <vb***@bellsouth.net> schrieb
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

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.