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.
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.
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.
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
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.