DebugMsg
Provides in-line debug messages of user Cicode, to the Kernel, Debugger Debug window, and the SysLog.DAT file. This function can be enabled or disabled with the [Code]DebugMessage parameter or DebugMsgSet() function at runtime.
Syntax
DebugMsg(sMessage)
sMessage:
The debugging message to log. Be sure to enclose this message in double quotes (" ").
Return Value
None.
Related Functions
Assert, DebugMsgSet, CodeTrace, TraceMsg, ErrLog
Example
INT
FUNCTION
FileDisplayEx(STRING sFileName);
INT hFile;
hFile = FileOpen(sFileName, "r");
DebugMsg("When opening file " + sFileName + ", the handle was: " + IntToStr(hFile));
...
FileClose(hFile);
RETURN 0;
END
See Also