473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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?
Nov 20 '05 #1
4 4905
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
"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
"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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jose Olivas | last post by:
I am setting a cookie on a subdomain: http://store1.mydomain.com Then the store takes me to a shopping cart that is at: http://shopping.mydomain.com Somewhere the following code (taken and...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
8
by: tshad | last post by:
I have a string that I read from my database: 1|8|5620|541 These are all values in my ListBox. I want to select each of these items (4 of them - but could be many more). At the moment I am...
1
by: Rodger Dusatko | last post by:
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'...
14
by: serrand | last post by:
Could someone tell me a beautiful way to exit from a switch and a loop in one statement ... without using a goto... and if possible without using an auxiliary variable as i did... int res;...
1
by: Soren S. Jorgensen | last post by:
Hi, I've got a Crystal Report that gets some data from a stored procedure and I need to set some params of the proc at runtime. But no matter what I do, I cannot get the report to eat the params...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
7
by: PetterL | last post by:
I have a setting called My.settings.firstrun set to True, set in the setting manager. When i read this in the first form form_Load in a IF sentence it always come out as false. I have tried to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.