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

Difference between revisions of "DBG: OUTS"

From Creatures Wiki
Jump to navigation Jump to search
(Created page with "'''DBG: OUTS''' is a CAOS Debugging command for outputting strings to the Debug Log. (DeBuG: OUTput String) ==Usage== Syntax: ''DBG: OUTS var_or_string_literal(string...")
 
m
 
Line 9: Line 9:
  
 
==Examples==
 
==Examples==
Using DBG: OUTS, write a variable to the Debug Log, then display all debug output to date using DBG: POLL:
+
Using DBG: OUTS, write a variable to the Debug Log, then display all debug output to date using [[DBG: POLL]]:
 
<pre>
 
<pre>
 
SETS VA00 "A variable holding a string."
 
SETS VA00 "A variable holding a string."
Line 27: Line 27:
 
*[[DBG: OUTV]]
 
*[[DBG: OUTV]]
 
*[[DBG: HTML]]
 
*[[DBG: HTML]]
 +
*[[DBG: POLL]]
 
*[[C3 CAOS Debugging Commands]]
 
*[[C3 CAOS Debugging Commands]]
 
*[[FILE OOPE]]
 
*[[FILE OOPE]]

Latest revision as of 02:27, 17 July 2013

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]