What is Tracing in ASP.Net?

chinmay.sahoo

New member
Tracing is a way to monitor the x cution of your ASP.NET application. You can record exception details and program flow in a way that oesn't affect the program's output.

Page level Tracing - Enabled on a page-by-page basis by adding "Trace=true" to the Page directive Application Tracing - You can enable tracing for the entire application by adding tracing settings in web.config. In below example, pageOutput="false" and requestLimit="20"
 
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.
 
Tracing is an activity to follow execution path and display the diagnostic information related to a specific Asp.Net web page or application that is being executed on the web server. Tracing can be enabled at development environment as well as in the production environment. These information can help you to investigate errors or unwanted results while ASP.NET processes a page request. You can view trace information at the bottom of individual pages and also you can use the trace viewer to view these trace information that is collected and cached by ASP.NET when tracing is enabled.

In Asp.Net Tracing is disabled by default. Trace statements are executed and shown only when tracing is enabled. You can enabled tracing in two levels.
 
It enables you to follow pages execution path, display information at run time, debug your application. ASP.NET tracing can be integrated with system level tracing to provide multiple levels of tracing in distributed applications.
 
ASP.NET tracing enables you to view diagnostic information about a single request for an ASP.NET page. ASP.NET tracing enables you to follow a page's execution path, display diagnostic information at runtime, 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.

There are two ways:

(i) Page Level Tracing
(ii) Application Level Tracing
 
Back
Top