Welcome to the Creatures Wiki! Log in and join the community.

DBG: OUTS

From Creatures Wiki
Revision as of 02:27, 17 July 2013 by Lequio (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DBG: OUTS is a CAOS Debugging command for outputting strings to the Debug Log. (DeBuG: OUTput String)

Usage[edit]

Syntax: DBG: OUTS var_or_string_literal(string)

This sends the contents of var_or_string_literal to the Debug Log as a string.

DBG: OUTS is the same as OUTS, with the only difference being that the string is sent to the Debug Log. See OUTS for additional syntax, formatting, and examples.

Examples[edit]

Using DBG: OUTS, write a variable to the Debug Log, then display all debug output to date using DBG: POLL:

SETS VA00 "A variable holding a string."
DBG: OUTS VA00
DBG: POLL

Using DBG: OUTS, write the current time and date (RTIM) as formatted by RTIF, to the Debug Log:

DBG: OUTS "Debugging Started at: "
DBG: OUTS RTIF RTIM "%c"

See also[edit]