Thread: TRace files

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    TRace files

    What are trace files and what do they do?

    Is 'trace code' the term to describe the act of creating trace files?

    thnx in advance

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    A trace file can be a file with tracing, logging. You can open a log-file and while the program is running you can write data to the file at certain points. The logging can be very useful to debug your program.

    (I'm not sure if this was what you meant.)

  3. #3
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    HI,

    I was asking what a trace file is for. You said it's for debugging right? Are there any other uses? Is it only useful to the programmer? Why not use a debugger? It can display values of variables and breakpoints too?

    pls answser the above questions if possible

    thnx in advance.

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Yes, but a big advantage of a logfile is that you can put whatever information you want in it, it has a wider range of showing information. For example warnings.

    Logfile example:

    Calculated value A = 2
    Calculated value B = 0
    !!! Cannot calculate A/B since B == 0

    Further in some cases, especially real-time applications can't be debugged by a debugger. Some errors occur so sporadic that you have to run the program for hours. After the test, you can use the logfile to determine what happened.

    It is useful to programmer's during development, for testers during testing the software and for technical users during using the software. For example network software, if something crashed, the logfile can be used to determine what could have caused the crash.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  2. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  3. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  4. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  5. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM