What are the differences between Trace and Debug?
Answers were Sorted based on User's Feedback
Answer / vinod reddy
Trace and Debug - There are two main classes that deal with
tracing - Debug and Trace. They both work in a similar way -
the difference is that tracing from the Debug class only
works in builds that have the DEBUG symbol defined, whereas
tracing from the Trace class only works in builds that have
the TRACE symbol defined. Typically this means that you
should use System.Diagnostics.Trace.WriteLine for tracing
that you want to work in debug and release builds, and
System.Diagnostics.Debug.WriteLine for tracing that you want
to work only in debug builds.
Tracing is actually the process of collecting information
about the program's execution. Debugging is the process of
finding & fixing errors in our program. Tracing is the
ability of an application to generate information about its
own execution. The idea is that subsequent analysis of this
information may help us understand why a part of the
application is not behaving as it should and allow
identification of the source of the error.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / dasharatham
trace allows us to view how the code executed in details.
Debug allows line by line exection..
| Is This Answer Correct ? | 4 Yes | 0 No |
What does passport and windows authentication mean in ASP.NET?
Types of session management in ASP.NET?
What are main return types supported in Web API?
What is data grid view in asp.net?
Why is global asax is used?
What are the elements of a website?
What are sessions and cookies?
Can we handle the error and redirect to some pages using web.config?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
0 Answers AlKhaleej, Swatz Oils,
How do you open a page in a new window?
Which is better union or union all?
What is base class of .net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)