Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see workflow variables when debugging WF 4 Workflow Service

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?

like image 331
nodots Avatar asked May 22 '12 08:05

nodots


People also ask

What are workflow variables?

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.

How to use variables in workflow?

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.


1 Answers

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.

like image 106
Mike Perrenoud Avatar answered Oct 06 '22 07:10

Mike Perrenoud