Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What line of code is being executed?
Message
De
12/07/2002 04:22:10
 
 
À
11/07/2002 08:13:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00677430
Message ID:
00677887
Vues:
24
The trouble is, it's running as a process that's started from SQL Agent, so once it's running there seems to be no way to get in touch with it.

It happens almost immediately and I have the feeling some dialog is being displayed.

I seem to remember something like this where foxuser.dbf was invalid.
In that case VFP does not generate an error as it in my opinion should, so there is nothing to catch.

If RESOURCE = OFF in config.fpw, what are the consequences (if any) in a case like this?


>>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
>
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform