Re: Adding debug hook for error/yield/resume
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Adding debug hook for error/yield/resume
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2014年3月17日 20:45:58 -0300
> I'd like to move this debug.traceback discussion from LuaJIT maillist
> here [1]. debug.traceback used to be the only mechanism to catch
> run-time errors for code chunks you didn't load yourself and it
> appears that this mechanism is not available in Lua 5.2+ or LuaJIT as
> debug.traceback is not called anymore in those cases.
Isn't xpcall enough?
-- Roberto