Testing

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
HSEIVANE
Junior Coder
Posts: 33
Joined: Thu Jan 02, 2020 2:52 am

Testing

Post by HSEIVANE » Mon Jan 06, 2020 2:00 pm

Hi,

Is there any way to run the macro at certain line for testing porpouses?

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Testing

Post by Dorian (MJT support) » Mon Jan 06, 2020 2:37 pm

Using the debugger might help you get a good grasp of this.

In the editor you can use >Debug >Trace (ALT-DT) to run line-by-line, or F8 for Step mode.
Yes, we have a Custom Scripting Service. Message me or go here

HSEIVANE
Junior Coder
Posts: 33
Joined: Thu Jan 02, 2020 2:52 am

Re: Testing

Post by HSEIVANE » Tue Jan 07, 2020 3:52 pm

I just want to run a portion of the macro

Example

https://www.screencast.com/t/jTT1r8yRZ

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Testing

Post by Dorian (MJT support) » Wed Jan 08, 2020 1:53 pm

Yes, a few ways. The video I pointed you to should help, but :

Step (F8) to run line by line, from wherever you choose

or use a label :
Goto>jump (at the start of your script)
Then using Label>jump (where you want to test)

Adding Exit after line 44 will stop the script from continuing, or alternatively use a Breakpoint here.
Yes, we have a Custom Scripting Service. Message me or go here

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