Article ID: 306731 - Last Review: January 20, 2004 - Revision: 4.5 INFO: New Tracing Feature in ASP.NETThis article was previously published under Q306731 SUMMARY This article provides information about the new tracing
feature in ASP.NET. This article also describes how to configure this tracing
feature. MORE INFORMATION The tracing feature allows you to track the execution of an
application and view the results. You can enable tracing at the page level or
the application level. Enable Tracing at the Page LevelWhen you enable tracing at the page level, the trace output is added to the bottom of the page. The following code sample demonstrates how to enable tracing at the page level:Visual Basic .NET To remove the trace information, set the Trace attribute of the @ Page directive to false. You do not need to remove the Trace.Write statement. Notice that this is the TraceContext class, not the Trace class. To enable tracing at the page level in Microsoft Visual Studio .NET, you can also set the trace property of the document to true in the Properties window. Enable Tracing at the Application LevelTo enable tracing at the application level, use the Web.config file. The following code sample demonstrates how to configure tracing at the application level in the Web.config file:NOTE: The trace setting at the page level overrides the trace setting at the application level. REFERENCES For more information about tracing and trace configuration
settings, refer to the Visual Studio .NET product documentation and the
following MSDN documentation:
Tracing For additional information,
click the article number below to view the article in the Microsoft Knowledge
Base: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp01252001.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp01252001.asp) 308626
(http://support.microsoft.com/kb/308626/EN-US/
)
INFO: Roadmap for Debugging in .NET Framework and Visual Studio .NET
APPLIES TO
| Article Translations
|
Back to the top
