Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
When you use Workflow Designer, you can set breakpoints on your graphical workflows as you would do in Visual Basic or C# code. As expected, workflow execution stops at each breakpoint that you set.
A breakpoint has three states: Pending, Bound, and Error. When you set a breakpoint, it's Pending, and it's represented by a solid red icon. When the runtime has loaded the workflow type, it becomes Bound. If you specify an incorrect format for the breakpoint, such as an activity name that isn't valid, an error window appears. The breakpoint is still added to the breakpoint window, but it's marked with a small "x".
Prerequisites
Before you start debugging your code, prepare your environment and be aware of known limitations.
Enable debugging options in the Tools > Options pane, in the All Settings > Debugging > General section:
- Enable Just My Code
- Suppress JIT optimization on module load (Managed Only)
Enable debugging options in the Tools > Options dialog, in the Debugging > General section:
- Enable Just My Code
- Suppress JIT optimization on module load (Managed Only)
If you don't enable the specified debugging options, and you have two sequences nested within another sequence and a break point set on the first inner sequence, pressing F11 doesn't debug into the second inner sequence.
Setting breakpoints on invoked workflows isn't supported.
Breakpoints in a workflow aren't hit if the full path to an XAML file property isn't accurate. The full path to the XAML file isn't accurate after you move the project or solution to another folder or to another machine. Select Ctrl+S to save and update the full path property.
To set a breakpoint on an activity in the Design View
Select the activity you want the debugger to break on.
On the Debug menu, select Toggle Breakpoint. A red icon appears at the top left edge of the activity.
Alternatively, you can press F9 after selecting the activity, or you can right-click the activity and select Breakpoint > Insert Breakpoint from the right-click menu.