Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF DEBUG?
Message
From
30/10/2001 08:52:34
 
 
To
30/10/2001 08:40:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00574934
Message ID:
00574976
Views:
31
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
Previous
Reply
Map
View

Click here to load this message in the networking platform