lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 22 Mar 2022 at 06:21, Eduardo Ochs <eduardoochs@gmail.com> wrote:
Hi list,

where can I find a version in Lua of debug.traceback()?

Probably not 100% what you want, but here is a reimplementation of debug.traceback() in Lua, though it has a different, much more verbose, output format (though it also has a 'table' output so you could try to generate something more like Lua's own if you want): https://hg.prosody.im/trunk/file/tip/util/debug.lua#l121

Tests for it can be found here: https://hg.prosody.im/trunk/file/tip/spec/util_debug_spec.lua

Regards,
Matthew