[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua high-level debugger
- From: Daurnimator <quae@...>
- Date: Wed, 2 May 2018 14:07:38 +1000
On 2 May 2018 at 13:43, Dirk Laurie <email@example.com> wrote:
> Am I describing your module, or close?
> 1. It provides interactive debugging.
> 2. It takes max 5 minutes of studying the README to get up to speed.
> 3. You run your Lua code with `lua -l mydebug` or the like.
> 4. At some point in the program where you need debugging, you put
> 5. That routine calls a REPL which can list, inspect and change
> variables visible at that point of the program and return.
> !> x?
> upvalue, table 0x34bc80, has __index chain (3 levels)
> !> x.a?
> in __index(1), number, -nan
> !> x.a = 0
> !> exit
> This is not a sneaky advertisement for a module I already almost have.
> I wish to know what is on the shelf already.
Do you know about lua's built-in debug.debug()?