Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the debugger
Message
De
08/08/2006 18:30:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01143935
Message ID:
01143942
Vues:
14
>somebody can tell me how can i tracea program debug errors
>put interruption point or simmilar inthe ssyem i can not use
>the debugger as good as i want

Somewhere in your start routine put

Set asserts on

and where you want to check something

assert {your condition here}

If your condition is true, the code will go on. If it's false, you'll get a dialog where you can start the debugger from that point. The code is suspended on the Assert command, and you can look around your objects, variables etc and see what's going on and how did it happen that your expression got the wrong value.

Some tips: you can keep a number of expressions in the Watch window. My usual set is
_tally
alias()
recno()
reccount()
this
set("datasession")

Helps me a lot to pinpoint a problem fast.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform