How to view ASP.NET trace information


You can enable ASP.NET tracing either at an Application level or at a page level.

With the tracing enabled, you can view the trace output in a trace viewer by navigation to trace.axd from the root of your application. For example, if the URL of your application is http://localhost:11423/Website, then the trace viewer can be accessed at http://localhost:11423/WebSite1/trace.axd.

Trace

You can click on the “View Details” link of a requested page to see further information about that specific page.

To write to the trace output, you can add the statement Trace.Write(“This is an action in my page.”) into your code.

The trace request limit and whether the most recent tracing data is kept and shown in the viewer can be specified in the web.config file as follows:

<system.web>
<trace enabled=”true” mostRecent=”true”
pageOutput=”true” requestLimit=”20” />

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

One Response to How to view ASP.NET trace information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s