[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting local variable debug info from within a nested function.
- From: Stefan Sandberg <keffo.sandberg@...>
- Date: Sat, 09 Jun 2007 13:59:06 +0200
And what would those 'debugging tools' use then?
Sherry Zhang wrote:
On 6/9/07, Rici Lake <email@example.com> wrote:
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)
> -- (do something with param)
> 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
Why does the official lua distribution still have the `debug' library?
I think it is ugly if lua has that library. Most of the time we can
debug the scripts via some debugging tools.