Debugging

Viewing 3 reply threads
  • Author
    Posts
    • #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.

       

       

    • #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.

    • #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?

       

       

      • #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.

    • #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

      • #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.

Viewing 3 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.