By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,314 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,314 IT Pros & Developers. It's quick & easy.

Setting breakpoints in VB2005

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.