What's New in ASP.NET Tracing

ASP.NET tracing enables you to follow a page's execution path, display diagnostic information at run time, and debug your application. ASP.NET tracing can be integrated with system-level tracing to provide multiple levels of tracing output in distributed and multi-tier applications.

In ASP.NET 2.0, the major improvements to tracing features are:

  • Integrated tracing functionality   You can now route messages emitted by the System.Diagnostics.Trace class to ASP.NET tracing output, and route messages emitted by ASP.NET tracing to System.Diagnostics.Trace. You can also forward ASP.NET instrumentation events to System.Diagnostics.Trace. For more information, see Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing.

  • Programmatic access to trace messages   You can access and manipulate trace messages from your code for finer control over the format of trace messages or for additional processing you require. For more information, see Reading ASP.NET Trace Information and Writing Custom ASP.NET Trace Messages.

  • Improved application-level tracing   A new application-level tracing option lets you view the most recent tracing data available without restarting a tracing session or increasing the amount of tracing data the server must store. The most recent tracing data is displayed, while older tracing data is discarded. For more information, see Application-Level ASP.NET Tracing Overview.

See Also

Tasks

Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing

Concepts

Application-Level ASP.NET Tracing Overview
Reading ASP.NET Trace Information
Writing Custom ASP.NET Trace Messages