Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Job interview questions, any suggestions
Message
De
01/03/2000 12:22:43
 
 
À
01/03/2000 12:18:28
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00339251
Message ID:
00339903
Vues:
31
>>DEBUGOUT also has the advantage that you don't have to go back and remove them from your code. They don't do anything in the runtime.
>
>If you need a trace during runtime in an EXE, this works well:
>If file("c:\debuglog.txt")
> StrtoFile(str_variable+chr(13)+chr(10),"c:\debuglog.txt",.T.) && .T. = append
>Endif
>
>every iteration of a loop will add a line to the c:\debuglog.txt
>Turn on the debuglog by creating the file, off again by deleting the file.
>(you could also use several different filename for each segment of code you want to investigate)

A handy way to deal with those pesky bugs that disappear when the debugger is used, or only show up in the runtime, too. Great idea!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform