lua-users home
lua-l archive

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


What's the best place to hook into lua's internal error mechanisms?

Does everything go through error() at some point or is there something
lower down that's better to use?

I'd like to be able to catch both parse/compile errors as well as runtime
errors and drop into a debugging environment where I can use the debugger
API calls to display stack frame, examine variables and the like.

Brian

-- 
 Brian J. Swetland - swetland@frotz.net | "I take it you have never actually
    http://www.frotz.net/swetland/      |  tried to light a whiteboard on
                                        |  fire."               --Jay Kreibich