Wednesday, February 21, 2007

Debugging Windows Workflows

Debugging a Workflow:

1. Set the Visual Studio Workflow Project to Debug Mode
2. Go to Project Properties. Set the “Start Browser with URL” in the Debug tab to the URL of the site where the feature is installed.
3. Build the project.
4. Install the feature.
5. Associate the workflow with any list
6. Initiate the workflow. (If not already done once before)
7. In VS 2005, click on “Attach to Process”, click on Select and select “Workflow code”.
8. Select w3wp.exe where Type column displays “Workflow”.
9. Add a breakpoint where desired.
10. Initiate the workflow.