473,473 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

conditional break

hi
i want to add a conditional break in my vb.net code. like we could in vb6.
for example if the counter = 10 then break at that point.

kindly let me know if thats possible in vb.net

Ichor
Nov 21 '05 #1
2 4194
Hi,

Add a breakpoint to the line you want. Right click on the break
point and select breakpoint properties. Take a look at condition and hit
count.

Ken
--------------------
"ichor" <ic***@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
hi
i want to add a conditional break in my vb.net code. like we could in vb6.
for example if the counter = 10 then break at that point.

kindly let me know if thats possible in vb.net

Ichor

Nov 21 '05 #2

hi
i am using what you just described,
however, i have a huge program and i dont know where the values of different
properties are changing. hence i want to break when the value of a variable
= 22.(as an example)
if i knew where it is changing i can easily put a break point there. but the
problem is i dont know where thevalues are changing. like in vb6 i could
just put a conditional break saying when vriable = 22 break. it would break
exactly when the value changed. and i didnt have to bother to put a break
point in an exact location. in this new breakpoint dialog in vb.net i have
to specify either the function name or file name. and the exact line no as
well. i hope i have made myself clear.
thnx
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ef**************@TK2MSFTNGP11.phx.gbl...
Hi,

Add a breakpoint to the line you want. Right click on the break point and select breakpoint properties. Take a look at condition and hit
count.

Ken
--------------------
"ichor" <ic***@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
hi
i want to add a conditional break in my vb.net code. like we could in vb6.
for example if the counter = 10 then break at that point.

kindly let me know if thats possible in vb.net

Ichor

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: clueless_google | last post by:
hello. i've been beating my head against a wall over this for too long. setting the variables 'z' or 'y' to differing numbers, the following 'if/else' code snippet works fine; however, the ...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
0
by: VictorReinhart | last post by:
Hi, Access 2000, Conditional Formatting. I want to change the background color of a cell if its value differs from the same cell in the prior row (a "control break"). What can I do? Thank...
92
by: Raghavendra R A V, CSS India | last post by:
hie.. Do any one knows how to write a C program without using the conditional statements if, for, while, do, switch, goto and even condotional statements ? It would be a great help for me if...
1
by: Brian Henry | last post by:
How do you do conditional break points in .net? say i want to only break if a value changes or if its equal a certain state or value... any examples of this? thanks!
4
by: digz | last post by:
Hi, I am having a lot of trouble setting conditional breakpoints in gdb, here is a simple example... #include<string> #include<iostream> using namespace std; void func(string& s){ cout <<...
5
by: jayapal | last post by:
Hi the scenario is like this: func() { .... .... char *p= (char *)&str;
4
by: Zack | last post by:
Hi, Let's say you have this function named validate. validate looks like this: function validate() { return ($F("Email") != '' ? ($("Name").value = $F("Email")) : false); }
1
by: =?Utf-8?B?YQ==?= | last post by:
Does anyone know if there is a way to force the studio debugging to break at any line of code when any string is initialized with a certain value? In this case I inherited a badly written app and...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.