Thursday, May 28, 2009

Difference between Debug.Write and Trace.Write

Both Debug.Write and Trace.Write writes information to the trace listeners.
1. Debug.Write gets compiled only when application is build under debug mode.
Trace.Write gets complied in both Debug and Release Mode.
2. Debug.Write is used while debugging the application .
Trace.Write is used to help identifying the problems in the Released version of Application.

Namespace for Debug.Write and Trace.Write: System.Diagnostics

No comments: