Debugging Workflows using Workflow Manager Tools 1.0

來源:互聯網
上載者:User

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

  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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.