Trace vs Debug in .NET BCL

后端 未结 7 1267
余生分开走
余生分开走 2020-12-02 11:58

It seems that the

  • System.Diagnostics.Debug, and
  • System.Diagnostics.Trace

are largely the same, with the notable exception that

相关标签:
7条回答
  • 2020-12-02 12:49

    Debug is used to pure debugging purposes. It emits rich messages in debug execution (debug mode).

    Trace helps in application debugging, bug fixing, and profiling (after release).

    The Debug class is of no use in release mode.

    0 讨论(0)
提交回复
热议问题