> What are the possibilities for the LuaJIT interpreter to behave like the Lua > one when generating stack traces? I mean, to pick up the function in > debug.traceback dynamically. I'm using this in Mobdebug to report errors remotely, so would be interested in this working as well. Paul. On Fri, Mar 14, 2014 at 12:48 PM, Ignacio Burgueño <iburgueno@xxxxxxxxx> wrote: > Hi. I'm the author of StackTracePlus, a library to "enhance" stack traces > with additional information. > In my scripts, I usually just override debug.traceback with a custom > function. Works fine with Lua. > > Then, I got this issue reported today, saying that the technique is not > working with LuaJIT: > https://github.com/ignacio/StackTracePlus/issues/6 > > Checking the source, I found out that the interpreter does not use the > function at debug.traceback, so whatever you put there won't be picked up. > > What are the possibilities for the LuaJIT interpreter to behave like the Lua > one when generating stack traces? I mean, to pick up the function in > debug.traceback dynamically. > > Regards, > Ignacio