Jul 9, 2010

difference between Trace and Debug ?

Debug only works in debug mode and trace works in debug and
release both mode.
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.

No comments:

Post a Comment