Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What line of code is being executed?
Message
De
11/07/2002 08:13:47
 
 
À
11/07/2002 04:44:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00677430
Message ID:
00677464
Vues:
16
>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
	*on escape
endfunc
or
on escape set coverage to \tmp\log.log
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform