Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 110
What is the ifference between Debug and Trace?

Results 1 to 2 of 2

Thread: What is the ifference between Debug and Trace?

  1. #1
    Senior Member
    Join Date
    Jun 2015
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is the ifference between Debug and Trace?

    Tracing is actually the process of collecting information about the program's execution. Debugging is the process of finding & fixing errors in our program. Tracing is the ability of an application to generate information about its own execution.

    Trace and Debug work in a similar way, the difference is that tracing from the Debug class only works in builds that have the DEBUG symbol defined, whereas tracing from the Trace class only works in builds that have the TRACE symbol defined.

    • Use System.Diagnostics.Trace.WriteLine for tracing that you want to work in debug and release builds

    • Use System.Diagnostics.Debug.WriteLine for tracing that you want to work only in debug builds.

  2. #2
    Member
    Join Date
    Dec 2018
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Difference between the Debug class and Trace class. The Systems.Diagnostics namespace includes Trace and Debug classes and both have very similar methods. The primary difference is that calls to the Debug class are typically only included in Debug build and Trace are included in Debug build and Release build.

Similar Threads

  1. Can I customise the trace output?
    By beingchinmay in forum Web Programming
    Replies: 0
    Last Post: 10-15-2015, 12:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •