To debug in design-time mode you will start with two instances of Visual Studio. The first will have your custom pipeline component (your BizTalk project with the .BTP file) and the second will have your custom code. Then do the following:
To debug in run-time mode we will follow almost the same steps as we did during design-time mode except that we will attach to the BizTalk process instead and place our breakpoint on the execute method of the IBaseMessage interface implementation. In addition, when debugging in run-time mode we only need one instance of Visual Studio which contains your custom code. This assumes that you have already deployed your pipeline component and setup Send and Receive ports. To setup debugging follow these steps: