473,387 Members | 1,379 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,387 software developers and data experts.

Setting breakpoints in VB2005

In VB6 you could set a breakpoint when a variable had changed value. I can't
find this in VB2005. Is it there somewhere?

-Jerry
Sep 28 '06 #1
5 1524
GS
Probably not quite what you want but you can set watch on the variable
"Jerry Spence1" <je**********@somewhere.comwrote in message
news:45***********************@ptn-nntp-reader01.plus.net...
In VB6 you could set a breakpoint when a variable had changed value. I
can't
find this in VB2005. Is it there somewhere?

-Jerry


Sep 28 '06 #2
I believe you mean you set a watch point in VB6, and they're gone -
sort of. You can now set a conditional breakpoint (just add a
breakpoint and check out the breakpoint window) that does about the
same thing.

Thanks,

Seth Rowe

Jerry Spence1 wrote:
In VB6 you could set a breakpoint when a variable had changed value. I can't
find this in VB2005. Is it there somewhere?

-Jerry
Sep 28 '06 #3
Hi Jerry,
You can add a condtional breakpoint in VB 2005 by setting a
breakpoint on a line of code, right click the breakpoint dot and go to
conditions click 'Has Changed'

In the condition window you can then enter
My.Object.Text = "Hello World"

Be aware that if you are using VB Express 2005 then you won't be able
to set conditional breakpoint this way. It seems that they have missed
this out of the IDE, but I'm sure there are ways out there to
circumvent this.

Hope this answers your question.

Sep 28 '06 #4
When you are debugging your program in debug mode. There is a
"Breakpoints" tab that you can view. If you don't see it click on the
Debug Windows Breakpoints menu (Shortcut: Ctrl+Alt+B). This will
let you view all the breakpoints you have set. Before you can create a
conditional breakpoint, you must first set a breakpoint. Then the
Breakpoints tab will give you an option to make it conditional.

Sep 28 '06 #5
Jerry,

It is something I am missing as well.

It would be glad to get the computer stop if a value change wherever in the
program and you don't have to set on all those possible places a breakpoint.

Cor

"Jerry Spence1" <je**********@somewhere.comschreef in bericht
news:45***********************@ptn-nntp-reader01.plus.net...
In VB6 you could set a breakpoint when a variable had changed value. I
can't find this in VB2005. Is it there somewhere?

-Jerry

Sep 29 '06 #6

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

Similar topics

2
by: Mortimer Schnurd | last post by:
Hi folks, I am just learning C# and need some help with setting debugger breakpoints. In VB 6, I could easily set breakpoints on variables which either change in value or evaluate to a specific...
6
by: guy | last post by:
is there a reason why VB2005 does not let me put a breakpoint on an end sub? guy
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.....
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...
3
by: Ronald Raygun | last post by:
I have some server side code I want to debug (coming from C++ background). I am using echo statements but for some reason, no output is being generated. It would be much simpler if I could set...
6
by: PeteOlcott | last post by:
When I set a break point in a file that has both managed C++ and unmanaged C++ the debugger never sees the breakpoints in the managed code. What can be done to get the debugger to "see" the...
0
by: PeteOlcott | last post by:
When I set a break point in a file that has both managed C++ and unmanaged C++ the debugger never sees the breakpoints in the managed code. What can be done to get the debugger to "see" the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.