Pages

Ads 468x60px

Labels

Sunday, February 3, 2013

Tracing : 6








6

            Both debug and right to diagnostics trace to true in web.config sends the HTTP context trace messages to the output window you have the option of using either the debug or trace class within the system.diagnostics library when you're writing within debug mode.

But you need to use trace.right if you want to output messages in both the debug and release versions of your application the output window is not always the most convenient location to see the trace output data so you can also use the trace viewer tool this is implemented by the virtual trace.A XD page this page is a system define HTTP handler that retrieves.

The internal cash of trace information is being stored on the Web server when you use application level tracing gets a nice web interface into the tracing information that looks fairly similar to the trace output the we've seen earlier is essentially a magic URL that points to a page that doesn't actually exist all you need to do to access the trace here is to request the trace.A XD page from the root application directory the application is going to be similar to this URL sample local host on a particular port in whatever the domain name is <the application name/trace.txt>.

The information that you get on this page go had run the application with tracing enabled in the web.config file for single do is I want to have a little bit of tracing information sought is, click around a few links here is a couple times and then directly on the page I have a link to the trace viewer tool notice down in the lower left corner of the browser has local host the port number/tracing/trace.txt click on that and I can see all of the application level tracing information that the application has gathered to this point during the session of the browser as.

 I was clicking around it was loading only a single page default.aspx and that's what you see that file but that page has a reference to an external stylesheet called stylesheet.CSS if I want to get more detail about the individual request I can view the details by clicking any of these links so let's take a look at that this instance of the default.aspx and now I get all of the trace information from that particular request to the server and as you can see in this particular request.

 I have some of my custom trace messages and those are displayed to this is the same information that I would've seen when I clicked on the link for this particular request had I had page level tracing enabled but I can get access to it using this trace.txt virtual file so go back to my trace page and a typical web browsing section you'll have a lot more entries here and you can explore it and try to figure out what might be going wrong with the application I can also clear the current trace which clears out the buffer that is saved on the server is and I can start fresh

0 comments:

Post a Comment

 

Sample text

Sample Text

Total Pageviews