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
( 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...


P.S.: By the way, why lua_getlocal needs the current line number?