BizTalk - How to debug map in VS2005

I am here not talking about debugging BizTalk application with HAT, my topic is how to debug map in VS2005. Is it a new topic? I hope so. :)

1. Why is it possible to debug BizTalk map in VS2005?
    1). VS2005 enables you to debug XSLT (It might be a new feature coming with VS2005, I am not sure whether VS2003 has this feature.)
    2).  BizTalk map is essentially a XSLT file.

2. Are  you ready? the exciting journey begins here...
1). Generate XSLT file based on physical map. We will use the sample code which is for previous topic.
               Sample Map

 2).    Open your explorer, right click on the map file and select validate map.
        Validate Map
3). In the output window, you can see the xsl file is generated.
          XLS file
4). Press Ctrl and click the file path to open it.
           Open xsl file
5). Now you CANNOT find any menu regarding XSLT/Map debugging. Do not worry!  Right click on the document and select View Source.
         
6). A window pops up (shown as below), click Yes to continue.
           popup window
7). Click anywhere on the document and see what have been changed on the menu bar.
           
          It’s true, you found Debug XSLT menu item. Before debugging let’s put some breakpoints here.
             set breakpoint

8).  Just click it…another window will pop up to ask you specify a input file instance before debugging and continue to debug. As you can see watch window, command/immediate window now is available for you keep tracking variables, you can press F10 to step forward.
            debugging   
            
9). In the right hand window, you can see the output (tips: you can press Ctrl+K+D to format the output file to make it more readable).
             output

What do you see? It is really cool, isn’t it?
Enjoy!

转载于:https://www.cnblogs.com/netboy/archive/2008/05/09/1190623.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值