Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What is the difference between Debug.Write and Trace.Write? When should each be used?
What is the difference between Debug.Write and Trace.Write? When should each be used?
✍: Guest
Answer1:
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. And in any case, you should use something like log4net because that is both faster and better
Answer2:
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.
2014-02-24, 1822👍, 0💬
Popular Posts:
How To Test Transaction Isolation Levels? - MySQL FAQs - Transaction Management: Commit or Rollback ...
How you will enable front-end validation based on the xml in validation.xml? The <html:javascr...
What will the following piece of code do? int f(unsigned int x) { int i; for (i=0; x!=0; x>&a...
What are the different elements in Functions points? The different elements in function points are a...
How To Select an Oracle System ID (SID)? - Oracle DBA FAQ - Creating New Database Instance Manually ...