Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions Introduction > DebugMsgSet

DebugMsgSet

Enables/disables the DebugMsg() logging functionality. It also controls whether logging is enabled for the Assert() function. This function also sets the [Code]DebugMessage parameter appropriately.

Syntax

DebugMsgSet(nMode)

nMode:

The logging mode:

0 - Disable logging.

1 - Enable logging.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

Assert, DebugMsg

Example

Buttons

Text

Debug Enable

Command

DebugMsgSet(1)

Comment

Enable debug logging

See Also

Miscellaneous Functions