Debugging Workflows using Workflow Manager Tools 1.0

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
  1. Open an elevated command prompt.
  2. 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
  3. In the command prompt, run Microsoft.Workflow.TestServiceHost.exe and wait until the messages indicate loading is complete before debugging a workflow.

To debug a workflow
  1. Add the desired breakpoints in your workflow. Breakpoints can be added by right-clicking a workflow in the workflow designer and choosingBreakpoint, Insert Breakpoint, or by selecting an activity in the workflow designer and pressing F9.
  2. 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.
  3. Press F5 to start debugging.

转载于:https://www.cnblogs.com/frankzye/archive/2013/05/07/3065576.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值