Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine which line causes error in script
Message
From
10/12/2003 20:19:57
 
 
To
07/12/2003 07:49:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00856676
Message ID:
00857931
Views:
20
Hi Andrus,

I'm sure we all know where you are coming from.

The solution that I came up with to save my sanity was placing several

=messagebox([1])
=messagebox([2])

etc. throughout my script. I can then quickly narrow down what line is giving me grief.

I also use this to solve other nuances as well. If I expect a certain return variable or result and am not getting what I expect, I'll put a
=messagebox(variable) in the script and follow it back through the logic to see where I'm at fault.

Through my years of clipper programming, I was used to passing the proc name and the proc line back to the user if an error occured, so debugging was much simpler.

But oh well.

Hope this helps.
Bruce
Previous
Reply
Map
View

Click here to load this message in the networking platform