Debugging .NET Code during BizTalk Orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 Debugging .NET Code during BizTalk Orchestration

Viewing 1 reply thread
  • Author
    Posts
    • #17858

      Hi,
      does anybody know if there is a possibility to debug .NET Code while an BizTalk Orchestration is running that calls this .NET Code?

      Background:
      I'm using the BizTalk Expression Editor, to make a decision in an Orchestration (if…else). But when I test the Orchestration it doesn't work. The BizTalk Orchestration receives the Receive-File/XML File/Message which I put into an folder. That means the file disappears in that folder, but it doesn't apear in the folder where it should arrive.

      The XLANG/s expression at the decision form is as following:

      XLANG/s:
      MethodContainer.CheckAnmeldung.DuplicateExists(AnmeldungInstance)
      || MethodContainer.CheckAnmeldung.CheckGasthoerer(AnmeldungInstance)

      MethodContainer is a ClassLibrary, CheckAnmeldung is a Class in it and DuplicateExists and CheckGasthoerer are Methods. AnmeldungInstance is the received a XLANGMessage.

      I built my BizTalk Project analog to the Tutorial example.

      Greetz
      Peejay 

    • #17860

      If you set a breakpoint in your class method, and do "debug … attach to process" and choose the btsntsvc.exe, when that code is called from the orchestration, it should jump to your code and let you do standard debugging.

      • #17865

        [quote user="rseroter"]If you set a breakpoint in your class method, and do "debug … attach to process" and choose the btsntsvc.exe, when that code is called from the orchestration, it should jump to your code and let you do standard debugging.[/quote]

        Richard, 

        Does it matter if his code is compiled with the Debug or Release flag?  

        -wa 

        • #17866

          That's a really good question.  Since I always do this while developing, I'm sure I'm in "debug" mode.  Might want to try flipping that to debug before trying to step through.

           BTW, "wa", you and I need to make up 😉  You've been posting some kick *ss responses lately.

          • #17868

            Even though I haven't tried it and the question seems already been solved:

             http://msdn2.microsoft.com/en-us/library/aa577412.aspx
             

            BR, Hansi
             

            • #17878

              Thank you guys for your posts! Unfortunately the debugger doesn't jump into my Code anyway:-(. Are there more or any special things to pay attention to?
               
              Also that expression, they tell you to put into an expression shape (System.Diagnostics.Debug.WriteLine(iResult);) in the article postet by Hansi is not valid because iResult can't be found.

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