How to turn UltimateDebug messages on and off

See help on “Predefined Compiler Flags” which are usually used with OMIT() or COMPILE() like:

OMIT('!** Not Debug **',_Debug_)
   Glo:DbugOff = TRUE         !Not compiled Debug so skip the Output of Debug
!** Not Debug **

OutputDebugString() calls can take some time as it must access 1 or 2 kernel objects. So heavy calling can slow your program down.

You can detect if there is a Debug Viewer running, if not set your Glo:DbugOff = TRUE

http://www.unixwiz.net/techtips/outputdebugstring.html

3 Likes