lua-users home
lua-l archive

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


>Could you post some sample code of how to get the number and names of the
>parameters for a given function?
>Lua debugger uses these functions.  You can download the source code
>(<http://www.inf.puc-rio.br/~roberto/ldb.tar.gz) and take a look.
>local_env is a function that reproduces the local environment of a
>running function on the global, so the debugger command line can work.
>ldb_where shows the names and current lines of execution of the stacked
>functions (of course you cannot get the current line of a function that is not
>executing).  Maybe it helps...

Thanks for the info but I need this for functions that are not on the lua stack.
(I've already written a  similar graphical debugger for my project which gets this
info for functions on the stack)

Btw, how does one differentiate locals and parameters from this info?

Steve