473,498 Members | 1,911 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

check for value during debugging...

VMI
I'm trying to debug a For loop but I don't want the compiler to break
everytime it enters the loop. Is it possible to tell the compiler to break
when a condition is met? In other words, if my loop says for (int
i=0;i<2000;i++) { ... }, I want the compiler to break when i = 1400. Does
the compiler have this capability?

Thanks.
Nov 16 '05 #1
2 1444
VMI
I just learned that I can change the value of a variable dynamically while
the debugger's running.

VMI
"VMI" <vo******@yahoo.com> wrote in message
news:ud*************@TK2MSFTNGP11.phx.gbl...
I'm trying to debug a For loop but I don't want the compiler to break
everytime it enters the loop. Is it possible to tell the compiler to
break when a condition is met? In other words, if my loop says for (int
i=0;i<2000;i++) { ... }, I want the compiler to break when i = 1400. Does
the compiler have this capability?

Thanks.

Nov 16 '05 #2
You can set your breakpoint so it only breaks when a condition is met.
You can set the condition by modifying the properties of your break point.
To do this right click on the breakpoint and select BreakPoint Properties. On
the file tab there is a button "Condition" put your condition in there.

Regards,

Deepak
[I Code, therefore I am]
"VMI" wrote:
I'm trying to debug a For loop but I don't want the compiler to break
everytime it enters the loop. Is it possible to tell the compiler to break
when a condition is met? In other words, if my loop says for (int
i=0;i<2000;i++) { ... }, I want the compiler to break when i = 1400. Does
the compiler have this capability?

Thanks.

Nov 16 '05 #3

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

Similar topics

4
284
by: pantichd | last post by:
<I also posted this on microsoft.public.vsnet.debugging 'cuz I didn't know which was more appropriate or would get quickest response> Hello, Can someone tell me how I can view the contents...
1
2530
by: Francesc Guim Bernat | last post by:
Dear colleagues, i'm getting in troubles using one XML library with Visual Studio .NET and Xerces with Xalan. When i execute the code i get the next run time error: "Run-Time Check Failure #2...
1
1163
by: Welman Jordan | last post by:
When I debug an asp.net application, which would consume a considerable amount of memory, the application throws "unhandled exception" and delivers a 500 error page to the browser. I find that...
0
919
by: John Rivers | last post by:
Hello, When I press F5 to start debugging an ASP.NET application it takes around 6 to 12 seconds before my code actually executes. During most of this time the CPU usage of devenv.exe hits...
18
4758
by: staeri | last post by:
I'm using the following code to create a sum: forecast = forecast + eval(f.value); This only works if "f.value" contains a number. Can someone please help me so that it also works if...
34
7130
by: Chris | last post by:
Is there ever a reason to declare this as if(*this == rhs) as opposed to what I normally see if(this == &rhs) ?
2
3100
by: JM | last post by:
Hi, I used to chage my code during debugging with Visual Studio 2003 (I just stopped the code using a break point and VS2003 allowed me to change the code, and continue debugging), but now with...
7
16229
by: pooba53 | last post by:
I am working with VB .NET 2003. Let's say my main form is called Form1. I have to launch a new form (Form2) that gathers input from the user. How can I pass variable information back to Form1...
2
1268
by: dissectcode | last post by:
Hello - I am new to this and started a new job; and for now I am in charge of debugging everyone's C code. Can you please tell me the proper way to comment during this debugging process? Should...
0
7002
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
7203
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...
0
7379
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
5462
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
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
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
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
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.