Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lesson needed on Debugger
Message
From
09/07/1997 08:07:09
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00038993
Message ID:
00039063
Views:
39
>>Hi all,
>>
>>If I am running the debugger and I set a breakpoint on an event which is the result of the last line of code in a method, the Debugger stops, but shows me the first line of code which WILL BE executed in the NEXT method. Is it possible to find the last line of code which WAS executed in the LAST method, or even just to know the name of the last method executed?
>
>i'd usually stop at beginning of method so i can see how it's working.
>
>check the call stack. this won't tell you which methods were called at a parallel level (called all from same method), but it will tell you where you've been. make sense?

Yes. The fact that the call stack does not show parallel level methods is exactly my problem. Of course, this question was generated by my frustration with trying to find a rogue USE statement in one of my methods. I was testing for USED("mytable") in the debugger, so when the USE statement was fired, USED("mytable") returned false, triggering the debugger. I had no way of knowing what method had just fired besides stepping through the ENTIRE form since that nasty USE statement was in the "cleanup code" of a form in the process of beging destroyed.

Boy, sometimes I really miss procedural programming!

Thanks for the response.

Valerie
Previous
Reply
Map
View

Click here to load this message in the networking platform