This class works only when your application build defines the symbol TRACE.
For tracing, you have to use Trace.WriteLine statements.
Trace class is generally used to trace the execution during deployment of the application.
Trace class works in both debug mode as well as release mode.
Performance analysis can be done using Trace class.
Trace runs in a thread that is different from the Main Thread.
Trace is used during Testing Phase and Optimization Phase of different releases.
This class works only when your application build defines the symbol DEBUG.
For debug, you have to use Debug.WriteLine statements.
You generally use debug classes at the time of development of application.
Debug class works only in debug mode.
Performance analysis cannot be done using Debug class.
Debug runs in the same thread in which your code executes.
Debug is used during Debugging Phase.