PDA

Click to See Complete Forum and Search --> : Code Trapper?? Please??


Dayo312
Jan 5th, 2000, 09:59 AM
Could someone give me a hint of how to look at the code a program is Currently going through and print it out. I dont care if you just tell me, I need to know how to . Thankyou.

Evan

jritchie
Jan 5th, 2000, 10:10 AM
Evan,

Have you looked at the debugger options in vb. Not sure if this is what you want, but call your project up into the ide, (vb development environment), go to the code window, and single click on the left hand side of the code window. You should see a dot with the line highlighted.

Pressing F8 will execute the code one line at a time, F5 will execute as normal from the break-point. If you more your mouse pointer over variables record values etc a highlighted label will appear detailing what is currently stored in that variable or whatever.

There are quite a few other options available as well.

Hope this helps

Tonio169
Jan 5th, 2000, 03:46 PM
jritchie's suggestion is fine but i have to add... running in step-mode (F8) will help a lot specially when debugging your code but
sometimes, when you only need to view code execution in a particular line of a procedure or a function it can be tiring, you can use F9 by placing the cursor over the particular line where you want to use as breakpoint.