Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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