webmcp

annotate 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
rev   line source
jbe/bsw@0 1 --[[--
poelzi@36 2 trace.debug(...)
poelzi@38 3 ... -- messages to be inserted into the trace log
poelzi@36 4
jbe/bsw@0 5
jbe/bsw@0 6 This function can be used to include debug output in the trace log.
jbe/bsw@0 7
jbe/bsw@0 8 --]]--
jbe/bsw@0 9
poelzi@36 10 function trace.debug(...)
jbe@41 11 if not trace._disabled then
jbe@41 12 local message = ""
jbe@41 13 local arg = {...}
jbe@41 14 for i= 1,#arg,1 do
jbe@41 15 message = message..tostring(arg[i]).." "
jbe@41 16 end
jbe@41 17 trace._new_entry{ type = "debug", message = message }
poelzi@36 18 end
jbe/bsw@0 19 end

Impressum / About Us