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

What are main return types supported in Web API?

0 Answers  


How can we create pie chart in asp.net?

0 Answers  


what is the difference between this.controls and page.form1.controls and me.controls?

2 Answers   FactorH,


How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)

2 Answers  


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

0 Answers   HCL,






1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

0 Answers   Marlabs,


What does AspCompat="true" mean and when should I use it?

1 Answers   Infogain,


What is the difference between a Thread and Process?

1 Answers  


What are the built-in objects in asp.net?

0 Answers  


What is state management in asp.net with example?

0 Answers  


what is COM Object in Dot net?

6 Answers   CTS,


What is caching? What are different ways of caching in asp.net?

0 Answers  


Categories