Debug class | Trace class |
Debug class is used for debug builds. | Trace class is used for both debug and release builds. |
It works only in debug mode. | It works in both case debug and release mode. |
We can use Debug.Write() method. | We can use Trace.Write() method. |
It runs in same thread as main program execute. | It runs in different thread form main program execute thread. |