[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: getting call stack in case of a run-time error
- From: Dmitriy Iassenev <iassenev@...>
- Date: Wed, 21 Apr 2004 16:54:21 +0300
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