INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Following code as it executes

Following code as it executes

(OP)
Is there any tool within Access (or elsewhere) that allows documenting each line of code as it executes?

I'm aware of stepping thru the code manually and using Watch statements, etc., but was wondering if the executing lines can be documented in the order they execute. It may be more helpful, when there are many calls to other subs and functions, to see just what and where the code is doing and going.

If this tool doesn't exist, maybe some of you talented folks can conjure it up!

Thanks,

Vic

RE: Following code as it executes

Vic,

I am not aware of any feature to watch code as it executes. What I often do for debugging is the following:

Add a line in each or selected procedures to indicate that procedure has been entered. You can also include Now() to show the time.

I add a global boolean variable to allow this "feature to be turned on/off. You set the ShowDebug to True/False before running your code

For example:

CODE -->

Sub GetClient()

If ShowDebug then 
debug.print "Entered GetClient : " & Now
'other code in GetClient goes here 

Not elegant, but it works.

Good luck.

RE: Following code as it executes

(OP)
jedraw,

Very nice suggestion! I like it!

A star for you.

Vic

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close