Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

In Workflow Studio, you have the option to debug your designed workflows using either the CLR Debugger or Visual Studio.

...

Debugging is a crucial step that allows you to

...

examine your workflow code

...

, observe its outcomes, and identify any potential issues.

This article will guide you through the process of debugging a workflow using Visual Studio, enabling you to efficiently troubleshoot and refine your workflow for optimal performance and reliability.

To debug a workflow

  1. Compile and publish the workflow you wish to debug to the Workflow Server and restart the Web Role Service

...

  1. .

...

  1. Start Visual Studio and from

...

  1. the File

...

  1.  menu,

...

  1. select Open > File, navigate to "C:\Users\<YourUserFolder>\AppData\Local\EmpowerID\DataCommon\CompilerTemp," select the .cs file for the workflow you want to debug

...

  1. ,

...

  1. and

...

  1. click

...

  1. Open.

  2. Click

...

  1.  No on the Inconsistent Line Ending

...

  1.  dialog that appears.

  2. From

...

  1. the Debug

...

  1.  menu of Visual Studio, click

...

  1. Attach to Process

...

  1. , select

...

  1.  all w3wp.exe

...

  1.  processes in the Available Processes

...

  1.  pane, and then

...

  1. click Attach.

...

  1. Image Added

  2. From the cs file for the workflow, place a breakpoint in the code editor where desired

...

  1. .

...

  1. Image Added

  2. Run the workflow. When the workflow process reaches the breakpoint placed in the .cs file, the process will stop, allowing you to step through the code and observe what is occurring from Visual Studio.

...

  1. Image Added

    Info

    If you make changes to the source code for the workflow, be sure to republish the workflow. Otherwise, the symbols used when debugging will not match.

    Insert excerpt
    IL:External Stylesheet
    IL:External Stylesheet
    nopaneltrue