Monday, October 26, 2009

Difference between Trace and Debug - C#

The Trace class functions almost identically to the Debug class. However, calls to Trace are executed in both Debug and Release builds. Therefore, use the Debug class to writemessages only in the Debug build, and use the Trace class to write messages regardlessof the build type.

No comments:

Post a Comment