Skip to content
paul59 edited this page Dec 21, 2019 · 20 revisions

trace

trace msg [color]

Parameters:

  • msg : the message to print in the console. Can be a 'string' or variable.
  • color : color for the msg text

Description:

This is a service function, useful for debugging your LUA code. It prints the message parameter to the console in the (optional) color specified.

tips:

  1. The LUA concatenator for strings is .. (two points)
  2. Use console cls command to clear the output from trace

Example

Example

-- trace demo
cls()
function TIC()
	trace('Hello console:'..time())
	trace('This text is blue',8)	
end

Clone this wiki locally