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:
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?
Workflow variables provide the ability to store data somewhere in order to use it in the conditions and actions within the workflow. Different types of data can be stored in a workflow variable. A workflow variable can also be used to get data from users on workflow start.
You can assign variables in a workflow by using an assign step or by assigning them as the result of a call step. Assigning a variable creates a variable in the current scope (in this document, see Variable scope). You can also access HTTP response information stored in a variable using the built-in parser.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With