This article will show you how to debug XLANG schedule. Before you begin, you must install XLANG trace located on [Drive]:\Program Files\Microsoft BizTalk Server\SDK\XLANG Samples\XlangTrace.
The steps involved
This is a simple one. Receive a MSMQ message queue (blue line) and forward to another MSMQ message queue (red One).
Add 2 actions to debug the above schedule (mapped to Logger class of XLANG trace Com)
Map the data part
Add New Constant (name it debug to invoke the trace process and to disable when release).
Add the decision prior to the trace as in the following diagram.
- Compile the schedule
- Run the schedule. The result will logged on
- Open the SQL enterprise manager
- Open XLANG_TRACE database
- Open trace_table Table
To disable the trace - edit the debug constant as false (0) as in the attached figure.
Recompile the schedule. Then you can release the schedule.