What is the difference between Debug.Write and Trace.Write?
When should each be used?

Answers were Sorted based on User's Feedback



What is the difference between Debug.Write and Trace.Write? When should each be used?..

Answer / prasad

Debug.write would not be compiled when the debug symbol is
defined
Trace.write would be compiled when the debug symbol is
defined

Is This Answer Correct ?    7 Yes 1 No

What is the difference between Debug.Write and Trace.Write? When should each be used?..

Answer / champion

Debug.Write & Trace.write - both works in Debug mode, while in Release Mode,Trace.write only will work .Try changing the Active Config property of Solution in Property page nd find the difference. Debug.write is used while debuging a project and Trace.write is used in Released verion of Applications.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

How will you write a web service for secure socket layer? What is secure socket? Have you done any socket programming? What is single thread and multi thread? What are the differences between .NET 1.1 and .NET 2.2? What is the command to connect to a StoredProcedure? How many types of Adapters are available in ADO.NET? Why DataAdapters are important? What is DataSet? It's important to compile the ASP.NET application before using it? What protocol you use to stream the audio and Video data? What are the different kind of network protocols? Write how will you connect to a database using DataSet? Why we use AJAX? What AJAX can do which JavaScript can't do? In a page using Windows Media API, if we press a button and in succession quickly press another button, what do you think will happen? Will the application wait for the first button response and then execute the second one or directly second button command will execute. What is the architecture of your application? What is connection pooling in SQL? Tell some functions of Windows Media API? How you will detect, whether the ActiveX is installed in the system before accessing it? What are validators are available in ASP.NET? What are the basic concepts of OOPS? What is abstraction?

0 Answers   Tesco,


Explain how can we inherit a static variable?

0 Answers  


What is full trust in asp.net?

0 Answers  


can I use session variable in App_code Class page??

3 Answers   Wipro,


What is difference between abstract class and an interface?

0 Answers  






Which protocol is used to call a web service?

0 Answers  


Is react a template engine?

0 Answers  


What is new asp.net core?

0 Answers  


List the asp.net validation controls?

0 Answers  


Do I need to have the latest version of windows media player installed?

0 Answers  


Where you store Connection string in "Web.Config" file in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is mta?

0 Answers  


Categories