BizTalk Orchestration – Orchestration debugging inside Visual Studio

Posted: September 7, 2009 in BizTalk
Tags: , ,

HAT it’s great for visual debug orchestration and see the track of the workflow, but there are some situations that we wish to could step through orchestration shapes in Visual Studio and see what’s real appends inside the shapes, special in expression shapes and message assign shapes, why this is so difficult to do with BizTalk projects?

So how can I do this?

  1. Go to regedit;
  2. Add a registry key named BizTalkProject at [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0]
    (if you are using BizTalk 2004 and Visual Studio .NET 2003 is HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1)
  3. Next, create a DWORD value named “GenerateCSFile” and set it to 1
  4. Setting the Generate Debugging Information = True property by right-clicking on the project in Visual Studio and selecting Properties → Configuration Properties → Build will ensure that the C# files are created for debug builds in BizTalk 2006.
  5. If you rebuild your project, you will see C# files in your project directory (Click show hidden files and you should see a file named <OrchestrationName>.odx..cs);

Now we can add breakpoints in code inside expression shapes or message assign shapes, to get into debug mode simply attach Visual Studio to the BTSNTSVC.exe process.

Surprisingly not too many people are familiar with it.

I hope this feature come more easily to do in next generations of the product, in other words, with special highlight.

References: Pro BizTalk 2006 and Professional BizTalk Server 2006

Tags: BizTalk | Orchestration | Debug | Visual Studio

About these ads
Comments
  1. ATIN says:

    I think with R2 and 2009, the odx.cs file is generated by default.

  2. Sandro says:

    Atin,You are correct, in 2006 R2, the “.odx.cs” file is generate by default (in the same directory that the “.odx” file)BizTalk 2009 the behavior is a little different, the CS file for the Orchestration is placed in “obj\Debug\BizTalk\XLang” and is called File0.cs. (see http://sandroasp.spaces.live.com/blog/cns!98A008F39B7BBF8E!319.entry)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s