Home All Groups Group Topic Archive Search About

Setting breakpoints in VB2005

Author
28 Sep 2006 2:02 PM
Jerry Spence1
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

Author
28 Sep 2006 6:38 PM
GS
Probably not quite what you want but you can set watch on the variable
Show quoteHide quote
"Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
news:451bd67d$0$16555$ed2619ec@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
>
>
Author
28 Sep 2006 6:59 PM
rowe_newsgroups
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:
Show quoteHide quote
> 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
Author
28 Sep 2006 7:21 PM
Sca_Tone
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.
Author
28 Sep 2006 10:16 PM
Paul
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.
Author
29 Sep 2006 4:56 AM
Cor Ligthert [MVP]
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

Show quoteHide quote
"Jerry Spence1" <jerry.spe***@somewhere.com> schreef in bericht
news:451bd67d$0$16555$ed2619ec@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
>