webmcp

annotate framework/env/trace/debug_trace.lua @ 406:36f0d1d5ed7d

Further fixes in mondelefant.connect{...} (including proper handling of garbage collection in case of memory allocation errors); Code cleanup (use luaL_setmetatable, which is available since Lua 5.2)
author jbe
date Wed Jan 06 18:59:58 2016 +0100 (2016-01-06)
parents 0b7e87f2dc91
children
rev   line source
poelzi@29 1 --[[--
poelzi@29 2 trace.debug_trace(
poelzi@29 3 message -- optional message to add
poelzi@29 4 )
poelzi@29 5
poelzi@29 6 This function includes a traceback into the debugging log
poelzi@29 7
poelzi@29 8 --]]--
poelzi@29 9
poelzi@29 10 function trace.debug_trace(message)
poelzi@29 11 trace._new_entry{ type = "traceback", message = tostring(debug.traceback(message or "", 2)) }
poelzi@29 12 end

Impressum / About Us