<!--[if !supportLists]-->1. <!--[endif]-->如果还未进行该操作,则创建一个文本文件,将其命名为 Web.config,并将它保存到应用程序的根目录。
<!--[if !supportLists]-->2. <!--[endif]-->在 <configuration> 元素的开始标记和结束标记之间,添加 <system.web> 元素的开始标记和结束标记。
<!--[if !supportLists]-->3. <!--[endif]-->在 <system.web> 元素标记之间,添加 <trace> 元素(它是自结束的)。
<!--[if !supportLists]-->4. <!--[endif]-->在 <trace> 元素中,声明 enabled 属性并将其设置为 true。
<!--[if !supportLists]-->5. <!--[endif]-->声明其他可选的属性,按照需要修改应用程序的跟踪行为。
本文介绍如何在Web应用程序中启用跟踪功能。具体步骤包括:创建Web.config文件并放置于根目录;添加<system.web>元素;插入<trace>元素并设置enabled属性为true等,以实现对应用程序运行过程的详细记录。
552

被折叠的 条评论
为什么被折叠?



