Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding ASTACKINFO
Message
From
02/05/2022 06:37:00
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01684243
Message ID:
01684313
Views:
39
>>>Hi,
>>>
>>>Please explain to me what I don't understand. A form is being open. The INIT should fire first. Then user clicks on a button cmd.Go_Next and the code in method thisform.go_next is executed. This code comes across an error.
>>>I analyze the stack. But the method INIT is not in the aProgStack. This is the sample code how I scan through the stack:
>>>
>>>ASTACKINFO(aProgStack)
>>>FOR iEle = 1 TO ALEN( aProgStack, 1 )
>>>      
>>>NEXT
>>>
>>>
>>>What am I missing?
>>
>>You got the answer to your question. I just want to add that when I want to know all the events that fire and the order, I use the Event Tracker. For debugging, I often add DEBUGOUT commands in methods to track where I am and what's going on.
>>
>>Tamar
>
>Please correct me if I am wrong. I am reading your paper on debugging. And the code:
>
>SET EVENTTRACKING TO Events.TXT
>SET EVENTRACKING ON
>
>Only works when executing the application from IDE. And at run-time, when running the app as an EXE, these commands do not work. Do I understand correctly that the Event Tracker only work in a Debugger or when running the app from IDE, and NOT from the .EXE?

Correct. The Event Tracker is a design-time tool only. (That's not true of the Coverage logger, which you can use at runtime, but performs a different task.)

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform