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

Home Posts Topics Members FAQ

Programmable breakpoints?

I guess there's no such thing as programmable breakpoints? I'm trying
to debug a program that has a problem deep inside a long loop, eg at
iteration 2000 of around 4000, which makes it realistically impossible
to step through manually. I'd like to be able to say:

If i = 300 then Break

and then start single stepping to find out variable values and the
fault in the logic. But it doesn't seem to exist. Is there any
alternative? (I can't start the loop at a later value for test
purposes because the data flow isn't known at design time.)

JGD
Nov 21 '05 #1
6 1244
If i = 300 Then
Console.WriteLine("xxx")
End If

Set a breakpoint on the Console.WriteLine("xxx") line and voila!
"John Dann" <ne**@prodata.co.uk> wrote in message
news:lg********************************@4ax.com...
I guess there's no such thing as programmable breakpoints? I'm trying
to debug a program that has a problem deep inside a long loop, eg at
iteration 2000 of around 4000, which makes it realistically impossible
to step through manually. I'd like to be able to say:

If i = 300 then Break

and then start single stepping to find out variable values and the
fault in the logic. But it doesn't seem to exist. Is there any
alternative? (I can't start the loop at a later value for test
purposes because the data flow isn't known at design time.)

JGD

Nov 21 '05 #2
"John Dann" <ne**@prodata.co.uk> schrieb:
I guess there's no such thing as programmable breakpoints? I'm trying
to debug a program that has a problem deep inside a long loop, eg at
iteration 2000 of around 4000, which makes it realistically impossible
to step through manually. I'd like to be able to say:

If i = 300 then Break


\\\
If i = 300 Then Stop
///

Alternatively you can set a breakpoint on a line, right-click it, choose
"Breakpoint properties..." from its context menu and add a condition.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Do you have:

Debug.Assert

in the VB 7.x IDE? If not, just another reason I'm staying with VB 6 until
VB 8 is released.

Mike Ober.

"John Dann" <ne**@prodata.co.uk> wrote in message
news:lg********************************@4ax.com...
I guess there's no such thing as programmable breakpoints? I'm trying
to debug a program that has a problem deep inside a long loop, eg at
iteration 2000 of around 4000, which makes it realistically impossible
to step through manually. I'd like to be able to say:

If i = 300 then Break

and then start single stepping to find out variable values and the
fault in the logic. But it doesn't seem to exist. Is there any
alternative? (I can't start the loop at a later value for test
purposes because the data flow isn't known at design time.)

JGD


Nov 21 '05 #4
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> schrieb:
Do you have:

Debug.Assert

in the VB 7.x IDE? If not, just another reason I'm staying with VB 6
until
VB 8 is released.


'Debug.Assert' is supported in VS.NET 2002 and 2003.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Then this the solution to OPs problem of putting a breakpoint in.

Mike.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> schrieb:
Do you have:

Debug.Assert

in the VB 7.x IDE? If not, just another reason I'm staying with VB 6
until
VB 8 is released.


'Debug.Assert' is supported in VS.NET 2002 and 2003.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #6
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> schrieb:
Then this the solution to OPs problem of putting a breakpoint in.


Yes, 'Debug.Assert' would work too.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7

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

Similar topics

1
by: Eric Terrell | last post by:
Folks: I've posted the full source code to C# Programmable Calculator at my website: http://www.personalmicrocosms.com/html/cspcalc.html C# Programmable Calculator is a Reverse Polish...
4
by: fred | last post by:
What has happened to my breakpoints? Whenever I start my application from the IDE in Visual Studio then all of the breakpoints show a "?" and a comment says "The breakpoint will not currently be...
2
by: Jozef | last post by:
Hello, I'm coding a windows form, and up until now, the breakpoints have worked fine. For some reason, now when I run the program, the breakpoints fail and the code continues running. I have...
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.....
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
1
by: Jeff | last post by:
Hey How can I get a list of breakpoints in Visual Studio 2005, while the loaded solution is in Edit mode (not running or not debugging)... I'm trying to learn thousands of uncommented C# code...
2
by: =?Utf-8?B?TG9zdCBJbiBUaGUgV29vZHM=?= | last post by:
I've seen a ton of posts about similar problems, but none of the solutions were effective. I've been maintaining this VB code for 3 years, and this is the first time this has happened. It seems...
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,...
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
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,...
1
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...
0
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
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.