What is the trace in ASP.NET

Showing Answers 1 - 6 of 6 Answers

Ch.Madhuri

  • Oct 7th, 2005
 

Trace is a mechanism in .NET for tracing errors in the applicaton and is a part of the system.diagnostics name space.

Sumit Agarwal

  • Feb 14th, 2006
 

Tracing makes debugging of ASP.Net page more easier & simpler displaying message during code Execution.

There are two types of Tracing

1.Application Level Tracing

2.Page Level Tracing

  Was this answer useful?  Yes

sudhir kumar

  • Feb 20th, 2006
 

ASP.NET introduces new functionality that allows you to view diagnostic information about a single request for an ASP.NET page simply by enabling it for your page or application. Called tracing, this feature also allows you to write debug statements directly in your code without having to remove them from your application when it is deployed to production servers. You can write variables or structures in a page, assert whether a condition is met, or simply trace through the execution path of your page or application.

In order for these messages and other tracing information to be gathered and displayed, you must enable tracing for the page or application. When you enable tracing, two things occur:

  • ASP.NET appends a series of diagnostic information tables immediately following the page's output. The information is also sent to a trace viewer application (if you have enabled tracing for the application).
  • ASP.NET displays your custom diagnostic messages in the Trace Information table of the appended performance data.

Diagnostic information and tracing messages that you specify are appended to the output of the page that is sent to the requesting browser. Optionally, you can view this information from a separate trace viewer (Trace.axd) that displays trace information for every page in a given application. This information can help you to clarify errors or undesired results as ASP.NET processes a page request.

Trace statements are processed and displayed only when tracing is enabled. You can control whether tracing is displayed to a page, to the trace viewer, or both.

  Was this answer useful?  Yes

rahul

  • Apr 5th, 2007
 

Trace in ASP.Net is nothing but to trace error. When we use this trace, we will get complete step-by-step diagnosis of our application or site. It will also give some details of the error, so that the user can easily debug the code.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions