-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Microsoft Windows Workflow Foundation 4.0 Cookbook
By :

In this task, we will debug a WF program.
Create a workflow project:
Create a new Workflow Console Application project under the Charpter01
solution. Name the project as DebugWFProgram
. In the opening WF designer panel, author a workflow as shown in the following screenshot:
Create workflow host code:
Open
Program.cs
file and change the code to:
using System.Activities; using System.Activities.Statements; namespace DebugWFProgram{ class Program{ static void Main(string[] args){ WorkflowInvoker.Invoke(new Workflow1() { InMessage="In Message" }); } } }
Set a debug break point:
Right-click an activity and select Breadpoint | Insert Breakpoint to add debug break point.
Debug it:
Press F5 to debug the WF Program; we can refer the following screenshot:
We can also debug an XAML workflow. Open Workflow with the XML editor, insert some breakpoints, then press F5; we will see the breakpoints as shown in the following screenshot:
Change the font size
Change margin width
Change background colour