Skip to content
Filippo edited this page Feb 6, 2017 · 20 revisions

##trace trace msg

##Parameters:

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

##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

-- trace demo
cls()
function TIC()
 trace('hello console:'..time())	
end

Clone this wiki locally