Using debug messages
The system module has a procedure call you can use to outputmessages to the debugger. OutputDebugMessage is the procedure name. When your programis running under a debugger the debugger will receive these messages and displaythem in a window. If your program is not running under a debugger the procedure callis ignored and does nothing.