Actually, to check if any debugging is running, you need to check for existence of all the windows.
>Cool. You could also use: WEXIST("TRACE").
>
>>
>>IF SET('ECHO') = "ON"
>> DO debugger_dependent_stuff
>>ELSE
>> DO something_else
>>ENDIF
>>
>>
>>HTH
>>>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!!!!