Workflow Foundation and tracing
I think Windows Workflow Foundation is one of the more interesting features in WinFx, oops the .NET 3.0 framework. But figuring out what to do can be a challenge. Fortunately they added a number of trace switches to allow you to track what the components are doing. Add the following to the app.config file to see what is going on:
<system.diagnostics>
<switches>
<addname="System.Workflow LogToTraceListeners"value="1" />
<addname="System.Workflow.Runtime.Hosting"value="Verbose" />
<addname="System.Workflow.Runtime"value="Verbose" />
<addname="System.Workflow.Runtime.Tracking"value="Verbose" />
<addname="System.Workflow.Activities"value="Verbose" />
<addname="System.Workflow.Activities.Rules"value="Verbose" />
</switches>
</system.diagnostics>
Valid value are:
Off
| No messages
|
| Error | Only error messages
|
| Warning | Error and warning messages |
Info
| Information, error and warning messages
|
| Verbose | All kind of messages |
Enjoy!