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 to encrypt a connection string in web.config file?

3 Answers   Hexaware,


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

0 Answers  


on modify statement, executeNonQuery returns zero rows affected even though there has been modification carried out sucessfully in the table.. can anyone tell me is this possible??? if yes, how..???

1 Answers   ADITI,


Page Life Cycle in ASP.NET

2 Answers   Syntel,


I need some questions regarding asp.net for 1.5yrs of Experience.

1 Answers  


What is WebService ?

8 Answers   Tanla Solutions, Yahoo,


How do we access view state value of this page in the next page?

0 Answers   MindCracker,


Using code explain Configuration Management

0 Answers  


What is data reader in asp.net?

0 Answers  


Who is using asp.net?

0 Answers  


i have one gridview contains edititemtemplate(which contains update and cancel buttons) and i have one item template (contains edit button) i want the code for update and cancelbuttons in edit item template and i want the code for edit button in itemtemplate. please help me

4 Answers  


How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) without calling its event and without going to Siverside code?

5 Answers   LG Soft,


Categories