[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua hook and debugger implementation questions
- From: Paul K <paul@...>
- Date: Fri, 20 May 2016 15:07:39 -0700
Hi Dibyendu,
> First - at present there isn't an ability to invoke the hook when an
> error is thrown or caught. Is it possible / good idea to add support
> for this? From a debugger perspective the throwing or catching of an
> error is similar to function call / return.
This has been discussed briefly in the past; for example,
http://lua-users.org/lists/lua-l/2014-03/msg00457.html, which
references another discussion on lujit maillist:
http://www.freelists.org/post/luajit/Overriding-debugtraceback. There
is also a patch to the Tilde debugger that adds the error hook to lua
5.1: https://github.com/jjensen/lua-tilde/blob/master/lib/lua/lua_5.1.3.patch.
I'd be interested in this hook as well.
> A simple tracking of call / return statements will fail if an error is thrown
Do you have a script that demonstrates when this tracking is not working?
Paul.