what is diffrence between debug class and trace class in
asp.net ?

Answers were Sorted based on User's Feedback



what is diffrence between debug class and trace class in asp.net ?..

Answer / suresh

Debug class is used for debug builds.
Trace class is used for both debug and release builds.

Is This Answer Correct ?    2 Yes 0 No

what is diffrence between debug class and trace class in asp.net ?..

Answer / naresh

Debug Class provides a set of methods and properties that
help debug your code. If you use methods in the Debug class
to print debugging information and check your logic with
assertions, you can make your code more robust without
impacting the performance and code size of your shipping
product. In Visual Studio 2005 projects, creating a debug
build enables Debug.


You can use the properties and methods in the Trace class to
instrument release builds. Instrumentation allows you to
monitor the health of your application running in real-life
settings. Tracing helps you isolate problems and fix them
without disturbing a running system.
In Visual Studio 2005 projects, Trace is enabled by default
for both release and debug builds, so code is generated for
all trace methods in both release and debug builds.
Therefore, you can use Trace to instrument release builds

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

How many types are there session

5 Answers   TCS,


You have multiline textbox and submit button. if you paste xml content into multiline textbox and hit submit button. what action will perform?

6 Answers   D&B,


How cross page posting is done in Asp.net 2.0?

3 Answers  


What are cao and sao.

0 Answers  


Whats the difference between abstract factory pattern and factory pattern?

0 Answers  






How you can manage the state of application at the server side in ASP.NET?

0 Answers  


Hey I am using asp.net mvc architecture. I creating one dropdownlist using <select id="State" name="State"></select> this is dynamic list.Its displaying properly. But in time of Edit.If i load a page dropdownlist is not displaying the item which is stored in table.

1 Answers  


What is the relationship(in oops) between codebehind and inline code(.aspx to .aspx.cs)??? explain

4 Answers   Mind Tree,


What is ispostback property?

0 Answers  


How you can access the values from the Repeater control in ASP.NET?

0 Answers  


i have a register form & in that form i have a 2 textboxes for entering name&age.my doubt is that how can i provide error message like "invalid entry" when user enter a invalid name/age(eg:user enter name as #%%%##daff,and age as 1000.)in that textboxes.I want code.

3 Answers  


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

0 Answers   HCL,


Categories