Sep 11, 2015

What is the difference b/w Debug and Trace ?


  • Tracing is the process of collecting information about the program's execution.
  • Debugging is the process of finding and fixing errors(bugs) in the program.
  • Tracing is the ability of an application to generate information about its own execution.
  • Tracing and Debugging works in a similar way, but the difference is that tracing from the 'Debug' class only works in builds with DEBUG symbol, whereas tracing from the 'Trace' class only works in builds with TRACE symbol.
  • The NameSpace, System.Diagnostics.Trace.Writeline for tracing that you want to work in debug and release builds.
  • The NameSpace, System.Diagnostics.Debug.Writeline for tracing that you want to work in debug builds only.

No comments:

Post a Comment