>Here's the scenario:
>
>An exe with no GUI occasionally appears to hang.
>
>There is no error, otherwise the error-handler would kick in, write a message to a log file and quit.
>
>There is no screen output in the program.
>
>VFP is not installed.
>
>Is there a simlpe way to log something like 'Currently executing line x of program y' to a logfile?
>
>TIA
Peter,
This could work
set escape on
on escape ShowMeWhereIAm(lineno(1))
function ShowMeWhereIAm(lineNumber)
local lvl
lvl = program(-1)-2
acti screen
?program(lvl), 'line ', lineNumber
endfunc
or
on escape set coverage to \tmp\log.log
Gregory