Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF DEBUG?
Message
De
30/10/2001 07:50:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/10/2001 07:44:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00574934
Message ID:
00574941
Vues:
23
>Is there some way to tell if the debugger is being run?
>
>I.e. I want something that in pseudocode would look like..
>
>IF THE CODE IS BEGIN RUN THROUGH THE DEBUGGER
>   DO THIS
>ELSE
>  DO THIS
>ENDIF
>
>
>THANKS!!!!

I don't find an intrinsic VFP property, although there might be a way. As a workaround, you could define (and change, appropriately) your own variable. Since variables have an unpleasant property of dissapearing, you may prefer to have a file on disk, as a "flag", and check for its existence.
if file("debugflag.txt")
  ...
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform