Workflow manager tools 1.0 for Visual Studio 2012 provides support for debugging workflows during design-time. This topic provides instructions for debugging workflows in Visual Studio using workflow manager tools.
Debugging workflows using workflow manager tools 1.0 for Visual Studio 2012
The steps in this section describe how to start a debugging session, set breakpoints, and debug a workflow using workflow manager tools. for instructions on installing workflow manager tools, see workflow manager tools 1.0 for Visual Studio 2012 installation.
During a debugging session, the workflows being debugged are published to the workflow resource database.
- If workflow manager is installed on the development machine, workflow manager tools configures the debugging tool to use the same database as workflow manager.
- If workflow manager is not installed on the development machine, workflow manager tools creates a set of databases on the SQL Server installation that is created during Visual Studio 2012 installation. these databases have the same schema as the workflow manager databases.
Workflows published to the database during debugging sessions are not deleted and remain in the databases after the debugging session completes.
- To start the debugging tool
- To debug a Workflow
To start the debugging tool
- Open an elevated command prompt.
- Navigate to the installation directory for workflow manager tools.
- X86:C: \ Program Files (x86) \ workflow manager tools \ 1.0
- X64:C: \ Program Files \ workflow manager tools \ 1.0
- In the command prompt, runMicrosoft.workflow.testservicehost.exeAnd wait until the messages indicate loading is complete before debugging a workflow.
To debug a Workflow
- Add the desired breakpoints in your workflow. breakpoints can be added by right-clicking a workflow in the workflow designer and choosing breakpoint , insert breakpoint , or by selecting an activity in the workflow designer and pressing f9.
- attach the Visual Studio debugger to the microsoft.workflow.testservicehost.exe process by choosing attach to Process from the debug menu. choose microsoft.workflow.testservicehost.exe from the available processes list and click attach .
- press F5 to start debugging.