Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF DEBUG?
Message
From
30/10/2001 07:50:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/10/2001 07:44:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00574934
Message ID:
00574941
Views:
24
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform