Setting breakpoints in VB2005

  • Thread starter Thread starter Jerry Spence1
  • Start date Start date
J

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
 
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
 
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.
 
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.
 
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
 
Back
Top