A debugger is missing in the script editor. Is there an opportunity to debug the script without connection to the external development environments?
To better understand what is happening inside your FlexiCapture 12 use the IFlexiCaptureTools interface and all its methods.
The following example can be used to display messages as a pop-up window or message inside processing logs:
This is a global object and it is available in any kind of script.
More information is available in Developer's Help Guide: https://help.abbyy.com/en-us/flexicapture/12/developer/iexportimagetools