|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Setting breakpoints in VB2005In VB6 you could set a breakpoint when a variable had changed value. I can't
find this in VB2005. Is it there somewhere? -Jerry 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 > > 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 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 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 >
Are optional parameters really an advisable thing to use ?
Handle Worked - can someone please double check keypressed Export array from vb.net to excel File converting/sending help Iterate a structure to get name and value How to find the position of the first dash in a string Looking for a real working transparent picturebox (newbie -vb2005) going back to begin of file with StreamReader printdialog problem |
|||||||||||||||||||||||