lua-users home
lua-l archive

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


Hello Tomas,

>> Is there any way to get call stack using lua_getstack and lua_getinfo
>> in case of a run-time error?
T> Try debug.traceback.  It is implemented in C:
T> file src/lib/ldblic.c, function errorfb.

it pushed a string :
error : stack traceback:
and returned.

I tried it after run-time error inside a lua thread. Now
I can do this but need to use hooks on call and return, it's not very
good, because it slows down LUA too much :(

-- 
Best regards,
 Dmitriy                            mailto:iassenev@gsc-game.kiev.ua