How to implement tracing with an example using C#.NET

Explain how to implement tracing with an example using C#.NET.

In web.config, set EnableTracing=”true”
System.Diagnostics.Trace.WriteLine ("Error in Method1.");

System.Diagnostics.Trace.WriteLineIf(variable, "Error in Method1.");
Debugging Windows in C#.NET
Explain all the windows that help with your debugging - This window provides a description for the flow of application till the current line where the debugger is pointing to. It gives the page information, method name, arguments, line number etc...
Debug class methods - C#.NET
Explain the Debug class methods - Assert:This method checks for a condition. It displays a user message if the condition is false...
Steps to create a setup program that will install or uninstall a web application - C#.NET
Steps to create a setup program that will install or uninstall a web application - Right click on the setup project and add Project output...
Post your comment