1.What is the difference between Tracing and Debugging.
Tracing is the ability of getting the detailed information of execution where as debugging is process of finding and fixing the errors.
2.How do you sort the Trace messages in the output?
Include the tracemode attribute in the Page directive. Set the attribute to SortByTime to sort the messages in the order in which they are processed. Set the attribute to SortByCategory to sort them by the categories.
3. Mention the object Used to write the debug statements?
Trace.
4. What is TraceContext Class?
ASP.NET uses the Trace Context class to store information about a request, its control hierarchy, and trace information.
5. What are the Methods of TraceContext Class?
The TraceContext class provides two methods, Write and Warn,which allow you to write statements to the trace log. Each method is overloaded and allows you to specify a tracing category, a text message, and optional error information. The only difference between these methods is that the Warn method displays its text in red.
6. What are the attributes of Trace Element?
Refer http://harikaworks.blogspot.com/2009/01/tracing-in-net.html
7. Where do you view the Trace log other than page?
Trace.axd file
8. Is Trace.axd is Page?
No,It is a Http Handler.
Friday, January 9, 2009
Tracing FAQ
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment