Introduction
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
Step 1
![Image 1](/KB/biztalk/DebugXLANGschedule/image001.jpg)
This is a simple one. Receive a MSMQ message queue (blue line) and forward to another MSMQ message queue (red One).
Step 2
Add 2 actions to debug the above schedule (mapped to Logger class of XLANG trace Com)
![Image 2](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
Step 3
Map the data part
![Image 3](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
Step 4
Add New Constant (name it debug to invoke the trace process and to disable when release).
![Image 4](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
Step 5
Add the decision prior to the trace as in the following diagram.
![Image 5](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
Step 6
- Compile the schedule
- Run the schedule. The result will logged on
- Open the SQL enterprise manager
- Open XLANG_TRACE database
- Open trace_table Table
![Image 6](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
Step 7
To disable the trace - edit the debug constant as false (0) as in the attached figure.
![Image 7](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
Recompile the schedule. Then you can release the schedule.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.