Here goes a nice tip about custom pipelines debugging.
We have to ways to do this:
- The hard way:
- Open your custom pipeline code on Visual Studio and place the breakpoint in the desired line.
- Click on the menu Debug >> Attach to process.
- Select the process BTSNTSvc.exe and click on the Attach button.
- Drop a message in a configured port and wait until the code hit the breakpoint.
- The other way:
- Open your custom pipeline code on Visual Studio and place the breakpoint in the desired line.
- Go to the custom pipeline project properties page and click on the Debug tab.
- On the “Start Action” property, select Start external program and then type “Driveletter$\Program Files\Microsoft BizTalk Server 2006\SDK\Utilities\PipelineTools\Pipeline.exe”
- On the command line arguments property type “customPipeline.btp -d messageInstance.xml -c”
- customPipeline.btp = path to the pipeline that use your custom component
- messageInstance.xml = File that contains the message instance
- Now, just press F5 and wait until the code hit the breakpoint
Nice huh?