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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ashx file in asp.net?

561


Explain how can you debug your .net application?

542


What are the advantages and disadvantages of session?

674


Explain the role of global.asax?

559


What is the adavantage of using ASP.NET routing?

656






What are tuples?

552


Write some code using interfaces, virtual methods, and an abstract class`

1591


I’m having some trouble with cas. How can I diagnose my problem?

603


What events will occur when a page is loaded?

587


Describe Segmentation With Paging?

640


Why and where this web.config file is used?

603


How can you access the properties and controls of master pages from content pages?

524


How to rename a table using sql queries?

575


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5090


What is tracing? Where is it used?

567