Results 1 to 6 of 6

Thread: Debug class and Trace class Difference

  1. #1
    Join Date
    Jan 2009
    Posts
    74

    Debug class and Trace class Difference

    Hello, I am currently learning the .net language and getting problem between the debug class and trace class. If anyone knows the difference between the Debug Class and Trace class then please provide me point wise description. I am confused about the both of them. If you know in details then please provide me some solution for finding difference between them.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Debug class and Trace class Difference

    If you are using Debug class then it will provide you different methods and their properties which can help you to debug your program. You can simply make use of the difference methods for debugging your code and then also you can print that debugging information and able to get the logic with assertions. It can make your code more robust. If you are using the Visual Studio 2005 then if you create a debug build then you are enabling Debug. If you are making use of the trace class in your program then you can make use of the properties and methods of this class. You can check the health of your created application with the use of the Instrumentation. It will provide you support for isolating your problems and also for fixing your problem. And while doing this your existing system would not be harmed. If you want to enable the Trace in your Visual Studio 2005 then you don't need to do anything as it is by default enabled.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Debug class and Trace class Difference

    If you are making use of the Debug.Write & Trace.write in your program then you can make use of Debug.Write in debug mode and in the Release mode you can make use of the Trace.Write. If you want to check the difference between them then you can simply do one thing. Just change the Active Configuration property in the Property page of solution and you can able to get the diffence between both of them practically. In your program you can make use of the Debug.write for debugging the code and Trace.Write for getting version of application.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Debug class and Trace class Difference

    When you are creating any application at that time you will make use of the Debug for debugging the program or code written. But the Trace option is used when any type of error is find out and now you want to write it to the log file. If you are using Debugging then it will able to perform the production time. If you are making use of the tracing then that can perform the testing and optimization of your product.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Debug class and Trace class Difference

    In the .net mainly two classes work with the tracing which are Debug class and Trace Class. Most of the working of both of them is similar, but they are having one difference. If you are tracing from the debug then it will trace on builds that are having the Debug symbol defined and if you are tracing from the Trace class then it will work only from the builds which are have the Trace symbol.

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: Debug class and Trace class Difference

    It is quiet simple. If you want to use the debug builds then make use of the Debug class and if you want to release builds then make use of the Trace class. For getting more information you can make use of the different books which are specially written for the .Net development Platform. Or you can simply make use of the different online books and make use of it.

Similar Threads

  1. Replies: 8
    Last Post: 08-10-2011, 11:06 PM
  2. What is the difference between Local class and global class in C++?
    By Dëfrim in forum Software Development
    Replies: 4
    Last Post: 03-01-2011, 10:44 PM
  3. Difference among concrete class and abstract class
    By Roxy_jacob in forum Software Development
    Replies: 4
    Last Post: 07-12-2009, 01:22 PM
  4. What is the Difference between Class and Object?
    By RupaliP in forum Software Development
    Replies: 5
    Last Post: 28-02-2009, 07:03 PM
  5. Good news for CBSE CLASS X & CLASS IX - visit learnnext
    By surya_expert in forum Education Career and Job Discussions
    Replies: 0
    Last Post: 13-12-2008, 12:09 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
  •  
Page generated in 1,711,704,823.79724 seconds with 17 queries