Skip to main content

How to debug a custom activity?

Comments

1 comment

  • Berend Veldkamp
    The easiest way is to use Visual Studio and the Workflow Designer:
    • On the Project Settings dialog, select the Debug tab
    • Check the 'Start External Program' radio button, and browse to the WF Designer executable.
    • When you start debugging (F5), the WF designer will open
    • In WF designer, build a small test workflow that generates input data for your custom activity, and obviously, include that custom activity too.
    • Set a breakpoint in Visual Studio and run the workflow using the simulator in the WF Designer (F5)
    • You can save some time by storing the test workflow somewhere, and put the path in the Command Line Arguments box in the project's Debug settings.

     

    Note: Don't copy the dll to the Workflow Designer's folder when debugging, just leave it in bin\Debug.
    0

Please sign in to leave a comment.