[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting local variable debug info from within a nested function.
- From: Rici Lake <lua@...>
- Date: Fri, 8 Jun 2007 21:37:38 -0500
On 8-Jun-07, at 8:28 PM, Matthew Armstrong wrote:
So I've gone and written myself some debugging utility functions, but
am running into some trouble with the following:
function outer(param)
return
function()
-- (do something with param)
debug.debug()
end
end
outer(42)()
So when I break at debug.debug, a search up the stack doesn't give me
any info about param. Any way to get this?
param is an upvalue; it's not on the stack at that point.
(Plug:) You might want to take a look at the lua debugger
(still alpha, but quite usable) at
http://primero.ricilake.net:8008/ldb/index.html