lua-users home
lua-l archive

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



On 22 Mar 2022, at 16:05, Matthew Wild <mwild1@gmail.com> wrote:

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


Regards,
Matthew

That provides a really nice output, verbose, but very clear.
Thx for sharing.

Thijs