Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error log
Message
From
23/11/2005 10:31:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01071585
Message ID:
01071589
Views:
36
>In my application when user comes across an error (bug in my code) the error message is logged into a .dbf table. But I never find the information much useful. What is missing for me to find the cause of the problem is "how" the user got to "this" place. What are the some latest keys or mouse clicks were done before the error occured.
>
>Can anybody suggest a couple of functions or methods to "trap" more useful information about an error?
>
>Thank you.

For a start, you might get the call stack, I think it would be something like this:
WriteLog("Call stack:")
for i = 1 to program(-1)
  WriteLog(program(i))
next
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform