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
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
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.)
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.
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.