Community

How to debug workflow library written in C# using ABBYY Flexicapture?

I have workflow written in C# and the library is referenced in ABBYY flexicapture project.

I am trying to Launch the debugger from C# code using Debugger.Launch() but it is not launching debugger in my local.

How do I debug the work flow?

 

Was this article helpful?

1 out of 1 found this helpful

Comments

5 comments

  • Avatar
    Permanently deleted user

    Hello,

    We recommend to debug the Rule Scripts by creating the DLLs in the Visual Studio and copying the rule script into it. 

     

    1. add ControllerInterop.dll from the ABBYY FC11 Servers directory to the VS project of the DLL type. 

    2. add to the DLL code 

    using ABBYY.FlexiCapture; 

    using System.Diagnostics; 

    and also 

    Debugger.Launch(); 

    Debugger.Break(); 

    3. build the DLL, then add it as "attached file" in the Project Setup Station > Project > .Net References and in the Document Definition Editor > Document Definition Properties > >Net references as "Shared assembly" 

    4. add to the Rule script code 

    using <DLL class name>; 

    and also add to the code the methods from the DLL; 

     

    Then on Rule execution the Debugger will be called. 

     

    Here is the instruction from the knowledge base: 

    https://knowledgebase.abbyy.com/article/1503 

     

    You may also see another instruction from the knowledge base 

    https://knowledgebase.abbyy.com/article/1505 

    but it is related to the JScript code debugging. 

    0
  • Avatar
    Permanently deleted user

    As this is a Workflow code, I see the debugger is launched in the processing station not in my local.

    0
  • Avatar
    Permanently deleted user

    Hello,

    Could you please describe in more details the encountered issue?

    0
  • Avatar
    Permanently deleted user
    I have the some issue I have followed the instructions above but the debugger doesn’t launch. I’m developing on a remote computer
    0
  • Avatar
    Permanently deleted user

    Hello,

    Could you please describe in more details the encountered issue?

    -1

Please sign in to leave a comment.