Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging - Class
Message
From
27/09/2001 13:17:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/09/2001 10:32:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00561435
Message ID:
00561556
Views:
20
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform