Skip to content
Denis Maslennikov edited this page Nov 13, 2017 · 5 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 to debug your LUA code. It will print back in the console the parameter passed.

tips:

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

Example

Example

-- trace demo
cls()
function TIC()
 trace('hello console:'..time())	
end
You can’t perform that action at this time.