webmcp
view framework/env/trace/debug.lua @ 75:faedbc8615e0
Allow particular records to be selected and/or disabled in ui.field.select{...}, even if they share the same key, and never select more than one record
| author | jbe | 
|---|---|
| date | Wed Jun 20 00:35:02 2012 +0200 (2012-06-20) | 
| parents | 0bbfee4d4aed | 
| children | e00d11c12b68 | 
 line source
     1 --[[--
     2 trace.debug(...)
     3   ...     -- messages to be inserted into the trace log
     6 This function can be used to include debug output in the trace log.
     8 --]]--
    10 function trace.debug(...)
    11   if not trace._disabled then
    12     local message = ""
    13     local arg = {...}
    14     for i= 1,#arg,1 do
    15       message = message..tostring(arg[i]).." "
    16     end
    17     trace._new_entry{ type = "debug", message = message }
    18   end
    19 end
