Difference between debug.write and trace.write?



Difference between debug.write and trace.write?..

Answer / Shiva Chaudhary

Debug.Write and Trace.Write are methods in C# used for outputting messages during the debugging process. The main difference lies in their scope: Debug.Write is only active when the application is compiled in Debug mode, while Trace.Write can be active in both Debug and Release modes. To enable trace messages, you need to set the AppDomain switch.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are the fundamental oop concepts?

1 Answers  


What is the difference while using directive vs using statement ?

1 Answers  


What is the default value of guid in c#?

1 Answers  


Is array a list?

1 Answers  


What are jagged arrays used for?

1 Answers  


What is the default value of singleordefault?

1 Answers  


Define acid rule of thumb for transactions in c#.

1 Answers  


Can you mark static constructor with access modifiers?

1 Answers  


How can I get around scope problems in a try/catch?

1 Answers  


Define multicast delegate? How it be used?

1 Answers   Siebel,


Explain how many types of exception handlers are there in .net?

1 Answers  


What namespaces are necessary to create a localized application?

2 Answers  


Categories