Page 1 of 1

How to obtain an active debug flag in CTRL script

Posted: Tue Aug 06, 2019 3:26 pm
by Piterskiy
Hi everyone,

do you know how to obtain debug flag in Ctrl?

I have my own debug flag that activates DebugFTN() messages in CTRL script, however there are some debugging that shall be prepared beforehand (some routine in loops) an only then printed out or not by DebugFTN() function.

I don't like processing preparation routine if the desired debug flag is not activated. Any ideas how to process it?

P.s. Parsing arguments did not help.

Re: How to obtain an active debug flag in CTRL script

Posted: Wed Aug 07, 2019 9:28 am
by leoknipp
I do not understand what you want to do.
The debug message for DebugFTN() are only written if the debug flag is set. With this function you can prepare debug message and write them only if needed.

With the CTRL function isDbgFlag() you can check if a specific debug flag is currently set or not.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: How to obtain an active debug flag in CTRL script

Posted: Wed Aug 07, 2019 11:50 am
by Piterskiy
isDbgFlag() is what I needed, thank you