webmcp

view framework/env/trace/debug_trace.lua @ 36:5380305a3d51

allow multiple arguments to trace.debug

you can now write trace.debug("bla", 2, ...)
author Daniel Poelzleithner <poelzi@poelzi.org>
date Sat Oct 09 00:57:26 2010 +0200 (2010-10-09)
parents 0b7e87f2dc91
children
line source
1 --[[--
2 trace.debug_trace(
3 message -- optional message to add
4 )
6 This function includes a traceback into the debugging log
8 --]]--
10 function trace.debug_trace(message)
11 trace._new_entry{ type = "traceback", message = tostring(debug.traceback(message or "", 2)) }
12 end

Impressum / About Us