What is diffrence between Debug and Trace class

Debug Class helps to set methods and properties that helps in debugging code. If we use methods in Debug class for print debugging information and checking our logic with cases, we can make our code more robust without impacting the performance and code size. On the other side we use the properties and methods in the Trace class to release builds and instrumentation allows us to monitor the condition of our application running in real-life settings. Tracin
g helps us to know problems and fix them without interact a running system. Trace is enabled by default in visual 2005. So code is generated for all trace methods in both release and debug builds.