使用跟踪查看器查看 ASP.NET 跟踪信息

asp.net中,可通过在<system.web>元素节点下启用<trace>节点元素来激活访问跟踪的。其信息的详细程度,另人吃惊:包括整个请求的过程、请求参数和回传值(viewstate)

system.web.trace

 

启用trace元素后,则可查看访问跟踪的信息

ajax1

[ 清除当前跟踪 ]
物理目录:D:"project"net"vs2005"webapp"ajax1"

对此应用程序的请求

剩余: 0
编号请求的时间文件状态代码谓词 
1 2008-8-3 1:56:46 /a.gif 200 GET 查看详细信息
2 2008-8-3 1:56:47 /multiUpdateProgress.aspx 200 POST 查看详细信息
3 2008-8-3 1:57:09 /updateProgress1.aspx 200 GET 查看详细信息
4 2008-8-3 1:57:09 /a.gif 200 GET 查看详细信息
5 2008-8-3 1:57:11 /updateProgress1.aspx 200 POST 查看详细信息

Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433

 

通过点击后面的 查看详细信息,可观看到对该页面的详细跟踪过程的。

请求详细信息


请求详细信息

会话 ID:
请求类型: POST
请求的时间: 2008-8-3 1:56:47 状态代码: 200
请求编码: Unicode (UTF-8) 响应编码: Unicode (UTF-8)

跟踪信息

类别消息From First(s)From Last(s)
aspx.page Begin PreInit

aspx.page End PreInit 5.6711118312523E-05 0.000057
aspx.page Begin Init 9.21904878972048E-05 0.000035
aspx.page End Init 0.00159489544062164 0.001503
aspx.page Begin InitComplete 0.00163512401715861 0.000040
aspx.page End InitComplete 0.00166976529139877 0.000035
aspx.page Begin LoadState 0.00169853989822729 0.000029
aspx.page End LoadState 0.0242374379984048 0.022539
aspx.page Begin ProcessPostData 0.0242988983236696 0.000061
aspx.page End ProcessPostData 0.0302901625765286 0.005991
aspx.page Begin PreLoad 0.0303382133762811 0.000048
aspx.page End PreLoad 0.0303683848086838 0.000030
aspx.page Begin Load 0.0303963213201678 0.000028
aspx.page End Load 0.0304348737060157 0.000039
aspx.page Begin ProcessPostData Second Try 0.0304636483128442 0.000029
aspx.page End ProcessPostData Second Try 0.0305063911754148 0.000043
aspx.page Begin Raise ChangedEvents 0.0305334895915542 0.000027
aspx.page End Raise ChangedEvents 0.0311260230001299 0.000593
aspx.page Begin Raise PostBackEvent 0.0311648547510927 0.000039
aspx.page End Raise PostBackEvent 3.04188549103308 3.010721
aspx.page Begin LoadComplete 3.04195253866064 0.000067
aspx.page End LoadComplete 3.04198326882327 0.000031
aspx.page Begin PreRender 3.04201148469987 0.000028
aspx.page End PreRender 3.04320800548673 0.001197
aspx.page Begin PreRenderComplete 3.04325158644465 0.000044
aspx.page End PreRenderComplete 3.04770271081939 0.004451
aspx.page Begin SaveState 3.04888666017608 0.001184
aspx.page End SaveState 3.04902885701954 0.000142
aspx.page Begin SaveStateComplete 3.04906266019843 0.000034
aspx.page End SaveStateComplete 3.0490959046471 0.000033
aspx.page Begin Render 3.04912328242835 0.000027
aspx.page End Render 3.14082544010482 0.091702

控件树

控件 UniqueID类型呈现大小字节数(包括子级)ViewState 大小字节数(不包括子级)ControlState 大小字节(不包括子级)
__Page ASP.multiupdateprogress_aspx 1019 0 0
    ctl06 System.Web.UI.LiteralControl 0 0 0
    ctl00 System.Web.UI.HtmlControls.HtmlHead 0 0 0
        ctl01 System.Web.UI.HtmlControls.HtmlTitle 0 0 0
    ctl07 System.Web.UI.LiteralControl 0 0 0
    form1 System.Web.UI.HtmlControls.HtmlForm 0 0 0
        ctl08 System.Web.UI.LiteralControl 0 0 0
        ScriptManager1 System.Web.UI.ScriptManager 0 0 0
        ctl09 System.Web.UI.LiteralControl 0 0 0
        UpdatePanel1 System.Web.UI.UpdatePanel 0 0 0
            ctl02 System.Web.UI.Control 0 0 0
                ctl10 System.Web.UI.LiteralControl 0 0 0
                UpdateProgress1 System.Web.UI.UpdateProgress 0 0 0
                    ctl04 System.Web.UI.Control 0 0 0
                        ctl11 System.Web.UI.LiteralControl 0 0 0
                ctl12 System.Web.UI.LiteralControl 0 0 0
                Label1 System.Web.UI.WebControls.Label 0 28 0
                ctl13 System.Web.UI.LiteralControl 0 0 0
                Button1 System.Web.UI.WebControls.Button 0 0 0
                ctl14 System.Web.UI.LiteralControl 0 0 0
        ctl15 System.Web.UI.LiteralControl 0 0 0
        UpdatePanel2 System.Web.UI.UpdatePanel 0 0 0
            ctl03 System.Web.UI.Control 0 0 0
                ctl16 System.Web.UI.LiteralControl 0 0 0
                UpdateProgress2 System.Web.UI.UpdateProgress 0 0 0
                    ctl05 System.Web.UI.Control 0 0 0
                        ctl17 System.Web.UI.LiteralControl 0 0 0
                ctl18 System.Web.UI.LiteralControl 0 0 0
                Label2 System.Web.UI.WebControls.Label 0 28 0
                ctl19 System.Web.UI.LiteralControl 0 0 0
                Button2 System.Web.UI.WebControls.Button 0 0 0
                ctl20 System.Web.UI.LiteralControl 0 0 0
        ctl21 System.Web.UI.LiteralControl 0 0 0
    ctl22 System.Web.UI.LiteralControl 0 0 0

会话状态

会话键类型

应用程序状态

应用程序键类型

请求 Cookie 集合

名称大小

响应 Cookie 集合

名称大小

标头集合

名称
Cache-Control no-cache, no-cache
Connection keep-alive
Keep-Alive 300
Pragma no-cache
Content-Length 326
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset gb2312,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language zh-cn,zh;q=0.5
Host localhost:3764
Referer http://localhost:3764/ajax1/multiUpdateProgress.aspx
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
X-MicrosoftAjax Delta=true

窗体集合

名称
ScriptManager1 UpdatePanel2|Button2
__EVENTTARGET  
__EVENTARGUMENT  
__VIEWSTATE /wEPDwUKMTc4Nzk0NDQ3Mw9kFgICAw9kFgQCAw9kFgJmD2QWAgIDDw8WAh4EVGV4dAUHMTo1Njo0NWRkAgUPZBYCZg9kFgICAw8PFgIfAAUHMTo1Njo0NWRkZNM9cZI4DDrWJpktacZYTXXli5TV
__EVENTVALIDATION /wEWAwLFh/qTCAKM54rGBgK7q7GGCHjYIOQqzURROBMZ6gMnx1sO/AgX
Button2 Button

Querystring 集合

名称

服务器变量

名称
ALL_HTTP HTTP_CACHE_CONTROL:no-cache, no-cache HTTP_CONNECTION:keep-alive HTTP_KEEP_ALIVE:300 HTTP_PRAGMA:no-cache HTTP_CONTENT_LENGTH:326 HTTP_CONTENT_TYPE:application/x-www-form-urlencoded; charset=UTF-8 HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_CHARSET:gb2312,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip,deflate HTTP_ACCEPT_LANGUAGE:zh-cn,zh;q=0.5 HTTP_HOST:localhost:3764 HTTP_REFERER:http://localhost:3764/ajax1/multiUpdateProgress.aspx HTTP_USER_AGENT:Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 HTTP_X_MICROSOFTAJAX:Delta=true
ALL_RAW Cache-Control: no-cache, no-cache Connection: keep-alive Keep-Alive: 300 Pragma: no-cache Content-Length: 326 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate Accept-Language: zh-cn,zh;q=0.5 Host: localhost:3764 Referer: http://localhost:3764/ajax1/multiUpdateProgress.aspx User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 X-MicrosoftAjax: Delta=true
APPL_MD_PATH  
APPL_PHYSICAL_PATH D:"project"net"chqapp"vs2005"webapp"ajax1"
AUTH_TYPE  
AUTH_USER  
AUTH_PASSWORD  
LOGON_USER HQM-CHQ"Administrator
REMOTE_USER  
CERT_COOKIE  
CERT_FLAGS  
CERT_ISSUER  
CERT_KEYSIZE  
CERT_SECRETKEYSIZE  
CERT_SERIALNUMBER  
CERT_SERVER_ISSUER  
CERT_SERVER_SUBJECT  
CERT_SUBJECT  
CONTENT_LENGTH 326
CONTENT_TYPE application/x-www-form-urlencoded; charset=UTF-8
GATEWAY_INTERFACE  
HTTPS  
HTTPS_KEYSIZE  
HTTPS_SECRETKEYSIZE  
HTTPS_SERVER_ISSUER  
HTTPS_SERVER_SUBJECT  
INSTANCE_ID  
INSTANCE_META_PATH  
LOCAL_ADDR 127.0.0.1
PATH_INFO /ajax1/multiUpdateProgress.aspx
PATH_TRANSLATED D:"project"net"chqapp"vs2005"webapp"ajax1"multiUpdateProgress.aspx
QUERY_STRING  
REMOTE_ADDR 127.0.0.1
REMOTE_HOST 127.0.0.1
REMOTE_PORT  
REQUEST_METHOD POST
SCRIPT_NAME /ajax1/multiUpdateProgress.aspx
SERVER_NAME localhost
SERVER_PORT 3764
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE  
URL /ajax1/multiUpdateProgress.aspx
HTTP_CACHE_CONTROL no-cache, no-cache
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_PRAGMA no-cache
HTTP_CONTENT_LENGTH 326
HTTP_CONTENT_TYPE application/x-www-form-urlencoded; charset=UTF-8
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_CHARSET gb2312,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE zh-cn,zh;q=0.5
HTTP_HOST localhost:3764
HTTP_REFERER http://localhost:3764/ajax1/multiUpdateProgress.aspx
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
HTTP_X_MICROSOFTAJAX Delta=true

Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433

 

 

posted @ 2008-08-03 02:04  FallingAutumn  阅读(622)  评论(2编辑  收藏  举报