How to see workflow variables when debugging WF 4 Workflow Service

.net, visual-studio-2010, visual-studio-debugging, workflow-foundation-4

Solution

You can see the values of the variables and more with the built-in IIS management console. As @Vivek stated you could also build your own custom tracking mechanism but that doesn't sound like what you're needing here.

Essentially you just need to turn the logging up a bit so it's more diagnostic and you will be able to see that information on the live running workflows that are running in AppFabric.

Problem

How can I see the current value of workflow variables when debugging a WF 4 Workflow Service (hosted in IIS 7.5 / AppFabric)? I attach Visual Studio 2010 to w3wp.exe but when a breakpoint on an activity is hit, only the following parameters are shown in the "Locals" debugger window: - isPriming - typeIslandArguments - debugInfo Trying to add a workflow variable manually to "Watch" results in "The name 'xyz' does not exist in the current context". Am I doing something wrong? Is my environment messed up (a Windows Server 2008 R2 machine with VS 2010 and VS 11 Beta installed - is it possible that VS 11 broke something)? Any ideas?

Original source