How to debug a custom activity?
Hi,
I have a custom activity (.Net/C#) which takes as input a featureset from and returns a number.
The activity is called from within a workflow which runs in a Silverlight viewer.
I would like to debug this custom activity but getting now clues as to how that can be done.
Any ideas?
0
-
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar