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
random stop execution, debug tips
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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.
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!
Bob
A humble man and PROUD of it!
-
- Newbie
- Posts: 7
- Joined: Wed Mar 16, 2005 1:08 am