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

Using shadow variable is good or bad for application?

1 Answers   Keane India Ltd,


how many character send in one sms forget 160limit and think about gateway allowed

2 Answers   Wipro,


What is difference between abstract class and an interface?

0 Answers  


Where viewstate value is stored in asp.net?

0 Answers  


Asp.net and asp ? differences?

2 Answers  






Can we change the page layout in ASP.NET 2.0 as Grid Layout like in previous version

2 Answers   Citrix, TCS,


How to Insert/Add in ASPXgridview

0 Answers   Infosys,


What is the namespace for encryption?

3 Answers   Astadia, CIA, Wipro,


When Garbage Collector will run and how its identifing whether the Object is used or Not.?

2 Answers   Verizon,


What is session state server?

0 Answers  


What is the difference between web config and machine config files?

0 Answers  


What are user controls and custom controls ?

1 Answers  


Categories