difference between Trace and Debug ?

Answer Posted / pallavi

The Debug.Write call won’t be compiled when the DEBUG symbol is not defined (when doing a release build). Trace.Write calls will be compiled. Debug.Write is for information you want only in debug builds, Trace.Write is for when you want it in release build as well.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an example of an application service provider?

647


Can you explain one critical mapping?

739


Write a code snippet to implement the indentation in json in web api.

780


3. What goals do you have in your career?

1611


What are tuples?

745


in which protocol ASP.NET WEB API Work?

808


To add a hyperlink column to the DataGrid which tag is used ?

759


What are the advantages and disadvantages of session?

871


Describe SOA and the tenets of it?

761


What is inproc and outproc?

746


Describe the Server Control Events of ASP.NET?

884


What is the latest version of asp.net?

743


What is the difference between page directive include and action tag include?

714


What do you understand from custom control?

805


What is advantage of asp.net?

737