Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What line of code is being executed?
Message
From
11/07/2002 08:13:47
 
 
To
11/07/2002 04:44:54
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00677430
Message ID:
00677464
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform