|
----- Original Message ----- From: petah Date: 3/12/2013 8:43 PM
The Tilde debugger made by Tantalus adds an error hook to catch the location where error() was called from. It works pretty well:Is it possible to get more structured information from a Lua error callback than a "mangled" string generated by luaL_error()/lua_error()?As far as I know, it's not.Would there be some lua_State trickery to uniquely identify where luaL_error() was called from? Maybe some twisted native (machine language) stack walk? The daemon currently uses wxWidgets (base) so can use x-platform functions.
https://github.com/jjensen/lua-tilde/blob/master/lib/lua/lua_5.1.3.patch -Josh