I have a script that contains dialog to get various values.
Depending on values the script then calls other scripts via the macro> command passing various paramaters.
My question is how can I debug the called macro?
Thanks.
how can I debug script called by macro>
Moderators: Dorian (MJT support), JRL
how can I debug script called by macro>
If it doesnt need a motor, it doesnt need to be done
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You would have to open that other macro up separately, set the parameter values as variables at the top temporarily and debug.
Another way would be to use Include instead of Macro.
Another way would be to use Include instead of Macro.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: how can I debug script called by macro>
Dear Marcus,
can you write an example? I have the same issue. Cannot debug a scipt calle from another scrip with parameters.
Thank you in advance.
Massimo Tivan
Banca Alpimarittime Bank
can you write an example? I have the same issue. Cannot debug a scipt calle from another scrip with parameters.
Thank you in advance.
Massimo Tivan
Banca Alpimarittime Bank
Massimo Tivan
RPA Developer
RPA Developer
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: how can I debug script called by macro>
I use include for this reason, the code in the included file will be shown in the editor when you run your code.
Re: how can I debug script called by macro>
The way I prefer doing this is to combine them together. Eliminate the macro call. Then debug. Once it works, split the two apart again.
Include shows the code included when it's running but then disappears when it stops. Makes debugging difficult.
Good Luck,
PepsiHog
Include shows the code included when it's running but then disappears when it stops. Makes debugging difficult.
Good Luck,
PepsiHog
Windows 7
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!