Mail Archives: djgpp/1997/09/02/07:48:25
Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De> writes:
>Paul Derbyshire wrote:
>[...]
>> Now, comb your disk for *.CHK files. For each one found, more it to the
>> screen: more file0001.chk for instance. (If that doesn't work you have a
>> weird/old DOS, and can try more <file0001.chk instead. Note the '<'
>> added.) Chances are one is your precious debugging output. Rename it,
>[...]
>Good idea. Nevertheless run SCANDISK/CHECKDSK once _before_ the faulty
>program, delete all FILE*.CHK. This decreases the files you have to more
>(or better: less ;-) afterwards.
Or you could write a small logging module, something that opens
a predefined logfile, writes your string and then closes it.
Something like
InitLog (char *logFileName);
LogMessage (char *format, ...); // vsprintf could implement this.
It works for me! :)
-Jerry.
--
* .,) G'day from Jerry Kotland Linux - I thought i was wrong once
(oo) Computer Science Student The Choice but i was mistaken.
( (\ Univ of Tech Sydney, Oz. of a GNU -??
-((- jkotland AT socs DOT uts DOT edu DOT au Generation
- Raw text -