Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging - Class
Message
De
27/09/2001 13:17:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/09/2001 10:32:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00561435
Message ID:
00561556
Vues:
21
>>Hi,
>> I have a class in prg file. I have difficulty to debug it becoz debugger doesn't stop at the breakpoint i specific. How?
>>
>>Thank you
>
>Sometimes I had the same problem.
>
>Just insert the command "SET STEP ON" before the command you want to debug.
>

SET STEP ON will work, but it's ugly. One of our nightmares is a forgotten SET STEP ON somewhere in the code, which will break with an ugly "feature not available" error in the .exe - a far better solution is to ASSERT {lCondition} in the code, and have Set Assert On while developing. It does nothing in the .exe, and you can always Set Asert Off while testing. Assert also gives you a dialogue box which pops up if lCondition is false, so you actually have a conditional breakpoint which is active in development only. I highly recommend it.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform