Code debugging is un-ignorable need for every programmer and DEBUG facility of Clipper / Harbour / HMG is very handy; with a little drawback :
it's highly complex due to its features and not easy to learn and use.
For a little purpose, a little Msgxxx functions ( especially MsgDebug() of our genius Dr. Soto ) will be enough in many time, under many circumstances; remembering WAIT and ALERT() of console mode.
And we have a little problem too in this method : if required 'repetitive' calls ( such as into a loop ) of that Msg function, requiring repetitive answers may be annoying.
In this condition we need a "log" file to records repeating values.
My preference ( IMHO the easiest way to build a text file ) is using and ALTERNATE file.
Pseudo code :
Code: Select all
build an empty log file
begin loop
.
.
.
use "?" or QUOT() to write the log file
.
.
end loop
close log file and show content
I hope will be useful.
Happy HMG'ing