Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF DEBUG?
Message
De
30/10/2001 08:52:34
 
 
À
30/10/2001 08:40:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00574934
Message ID:
00574976
Vues:
30
Yeah.. I think it was probably done quite quickly!

As things like this only ever pop their heads up in dev mode they usually don't get crafted quite so carefully :)

I suppose to do this properly (well more properly), I could check for a few other windows in debug screen..
FWIW.. in VFP7 wexist('debug') seems to work properly.. ie even though the doc's say it won't it does.

So.. Tim if you have VFP7 then wexist('debug') hah... just checked VFP6.. that works too

Will

>This works correctly in my spanish version of VFP (even though the windows have different captions). However, it only works if the watch window is open. If I open the debugger, but close the watch window, the question returns ".F.".
>
>Hilmar.
>
>>Tim,
>>
>>In my code I have the following (don't really know why!)
>>
>>
>>If wExist('watch') or wExist('Watch') or wExist('WATCH')
>>   ** Debugger is open
>>Else
>>   ** Not open
>>Endif
>>
>>
>>HTH
>>
>>Will
>>
>>>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!!!!
Will Jones
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform