Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DebugMsg

  • Last UpdatedJul 18, 2023
  • 1 minute read

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.

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

Miscellaneous Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in