Any commands like Throw/catch in Java?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
JacobT
Newbie
Posts: 1
Joined: Thu Jun 06, 2013 2:22 pm
Location: Peoria, Arizona
Contact:

Any commands like Throw/catch in Java?

Post by JacobT » Thu Jun 06, 2013 2:26 pm

I am messing around with Macro Scheduler and was wondering if there was anything like the catch/throw command in Java?

Would save me a lot of if statements if there was...

Like....

While the program is testing a different program, if the tested program gets an error Macro Scheduler will store that there was an error and what it said etc, and have that running the whole time opposed to 500 if-statements for each individual chance of an error?

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Jun 06, 2013 2:38 pm

You can turn on logging and write the progress of the script to a log file.

I like to run my scripts in the editor while debugging and step through them one line at a time by pressing the F8 key. I make sure that the "Builder Pane" under the "Tools" menu is turned on then I can see the results of each step in the "Watch List".

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