>>>>We are trying to debug spaghetti code from another programmer.
>>>>The program is hanging and we have to do a CTRL/ALT/DEL.
>>>>Will the results of the coverage command be complete if we reboot?
>>>>Can we force the coverage file somehow to be complete?
>>>>If not, are there any other tools available to us other than debug mode?
>>>
>>>One trick you could try would be to create a small program file:
>>>
>>>* DebugPasta.prg
>>>
>>>* Set up an ON KEY LABEL you can press when the spaghetti code "hangs", e.g.:
>>>ON KEY LABEL F10 QUIT
>>>* or maybe you could CANCEL, CLEAR EVENTS, or run your own cleanup code
>>>
>>>* Now run the problem code:
>>>DO Pasta WITH ...
>>>
>>>* When Pasta "hangs", press F10
>>>
>>Actually, there is code for the user hitting the 'Escape' key which is normally used to stop the program.
>>It is not working in this particular hang.
>
>It might be pretty easy to try an OKL; maybe SET ESCAPE is OFF in the pasta.
>
>You might want to check that _VFP.AutoYield is .T., which might be an issue if the pasta has ActiveX controls.
>
>I was going to suggest rebooting your machine, in case Windows notifies VFP it's shutting down and VFP might actually respond to that. Also, that should have the best chance of flushing files to disk. But, from your initial message it sounds like that's what you're already trying. At first I thought you were just killing the VFP process in Task Manager.
Thank you.
I will d/l the coverage profiler and try your suggestion.