What is the difference between Debug.Write and Trace.Write?
Debug.Write is usually used in the debug mode while you are debugging a project.
Trace.Write is usually used in the release mode to produce some trace logs.
Comments
- Anonymous
January 03, 2016
Debug gets complied out in release versions and trace does not. Trace has a more versatile configuration mechanism. SEE: stackoverflow.com/.../c-sharp-do-debug-statements-get-compiled-out-when-running-in-release-mode