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!
Tag标签: xsl,xslt,map

posted on 2008-05-09 21:36 zhanqiangz(闲云野鹤) 阅读(856) 评论(4)  编辑 收藏 所属分类: BizTalk

评论

#1楼  2008-05-09 22:57 Justin      

welcome to debug discovery team   回复  引用  查看    

#2楼  2008-05-09 23:08 求知无傲      

cool   回复  引用  查看    

#3楼  2008-05-10 08:52 montaquehou [未注册用户]

this feture is pretty usaful if the mapping is too complex. like this
one.

http://www.edsquared.com/content/binary/WindowsLiveWriter/DebugthatBizTalkMap_E215/BadMap.png

http://www.edsquared.com/CommentView,guid,daa4f179-d8b1-4746-b122-9b1503b7ee2c.aspx
  回复  引用  查看    

#4楼  2008-05-27 17:54 zhaoqp [未注册用户]

orz

: )   回复  引用  查看    


标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2008-05-09 21:42 编辑过
 
历史上的今天:

另存  打印
最新IT新闻:
· 万名Linux使用者向暴雪请愿Linux版《Diablo III》
· 56.com我乐网将全面转行 退出视频行业
· Joost借道TOM在线 将正式进军中国
· 微软副总裁公开承认Vista存在问题
· 互联网DNS存在重大漏洞 黑客可能控制网络流量
 


<2008年5月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

导航

统计

公告

如转载本博客的相关资料敬请注明出处.谢谢合作!

与我联系

常用链接

留言簿(6)

我参与的团队

我的标签

随笔分类(51)

随笔档案(49)

文章分类(7)

文章档案(5)

收藏夹(3)

.NET

BizTalk

Design

JavaScript

My Blogs

Power Tools

Process Control

Search Engine

SQL Server

XML

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜