Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll
<Asp.net blog>
<personal site>
[prev. Lesson]  Debug
     [next Lesson]  Tracing at Page Level

Debugging: Global Page Tracing by Charles Carroll

One of the nicest parts of ASP.net debugging is what I call post-mortem debugging. You can observe the vital execution of previously executed pages. Imagine someone called you or wrote tech support and complained their page had errors. You could pull up their page request, observe the vital info (browser, cookies, millisecond timing, etc.)

Lets observe what a typical post-mortem trace looks like on my server:
<http://www.learnasp.com/trace.axd>

Here is the simple setting in the web.config file that enables that style of tracing:

<configuration>
  <system.web>
    <trace
      enabled="true"
      traceMode="SortByCategory"
      requestLimit="40"
      pageOutput="false"
      localOnly="false"
    />
  </system.web>
</configuration>
Chaz Wish List
Tall Tip $5
Grande Tip $20
Venti Tip $39
Tip Jar Thanks
2004 Thanks
2005 Thanks
HUGE Tip -love site