random stop execution, debug tips

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rroach1991
Newbie
Posts: 7
Joined: Wed Mar 16, 2005 1:08 am

random stop execution, debug tips

Post by rroach1991 » Tue Nov 01, 2005 3:21 pm

I have a macro that opens a file, saves it as a new format and closes the file. It will run through 5 or 10 files just fine, then it stops. Any tips on debugging? Is there a step-through option? I tried recording the log, but can see nothing of interest. I have hundreds of files to do, so would like this to go without stopping for a breather every few files.

Thanks,

Rob

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Nov 02, 2005 12:06 am

Here is an abbreviated comment about using two powerful debugging options: Logging and Single Step.

1. Modify the script properties to include logging. Options are very clear. For Log Level, I usually choose the middle option: Log Entry BEFORE running step. After executing the macro, open the log file to see the last lines executed and perhaps some variable values, depending on how script was written.

2. In the Editor, select Debug/Show Watch List and then move cursor to beginning of script and select Debug/ Step. This will allow you to see branches and loops and values of variables as you step through the lines of script.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

rroach1991
Newbie
Posts: 7
Joined: Wed Mar 16, 2005 1:08 am

Post by rroach1991 » Wed Nov 02, 2005 12:11 am

Bob,

I have tried the log, but will try your tips to refine. And will try editor debugging as well.

Thanks for the ideas.

Rob

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts