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?
- Go to regedit;
- 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)
- Next, create a DWORD value named “GenerateCSFile” and set it to 1
- 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.
- 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