Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine which line causes error in script
Message
 
 
À
07/12/2003 07:49:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00856676
Message ID:
00857931
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform