Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Debugging
- This topic has 5 replies, 1 voice, and was last updated 8 years, 11 months ago by
community-content.
-
AuthorPosts
-
-
June 9, 2008 at 11:57 PM #19880
Hi,
is it possible to debug a .Net class that is called in Orchestration? if yes please let me know the steps of doing that.
-
June 10, 2008 at 4:27 AM #19881
Yes, you can debug that class. Just set a breakpoint in the class, then attach the debugger to the BizTalk host process. To do this, click on Debug, then click Attach to Process, then select BTSNTSVC.exe. Now when your orchestration runs it will stop at the breakpoint.
-
June 10, 2008 at 4:49 AM #19883
Hi,
I created a solution with one BTS Project and Class Library. I invoked the class lib thru Expression Editor in the Orchestration. Class Lib is GACed [ Debug Mode]. I set the breakpoint in the method inside the class lib.
Attached the BTSNTSVC process to the class lib.Ensured the Orchestration is running.
Kept the message in the recv folder. Happily received in Send Folder. But it has not hit the breakpoint.
Let me know whether i’m in right dir?
-
June 14, 2008 at 5:26 AM #19920
Here’s a trick you can do. Put this line of code in your class library:
System.Diagnostics.Debugger.Break();
This should show a message box that says an error has occurred, and ask you if you want to debug. Just click yes, and you should be able to debug as normal. If I can’t get this method to work, then I normally revert to printing trace statements and watching them in SysInternals DebugView.
Also, Do you have multiple host instances? If so, then you will have multiple instances of BTSNTSVC and will need to attach to the right one.
-
-
July 1, 2009 at 1:49 AM #22752
How to debug a Orchestration in Biztalk?
Can i attach Biztalk process & debug , now iam writing to event viewer. Please let me know
PrashanthSpark
-
July 26, 2009 at 2:25 PM #22915
Hi Prashant:
One way to debug an Orchestration in BizTalk is to use Microsoft Enterprise Library Logging Application Block (May 2007 version), add a reference to this library in your BizTalk project, call the Logger class exposed by this library in various places in the flow of the orchestration (using Expressions shapes) to write entries to a log file.
Best.
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.