[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua high-level debugger
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 2 May 2018 06:52:41 +0200
2018-05-02 6:07 GMT+02:00 Daurnimator <quae@daurnimator.com>:
> On 2 May 2018 at 13:43, Dirk Laurie <dirk.laurie@gmail.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
>> mydebug().
>> 5. That routine calls a REPL which can list, inspect and change
>> variables visible at that point of the program and return.
> Do you know about lua's built-in debug.debug()?
> https://www.lua.org/manual/5.3/manual.html#pdf-debug.debug
"Note that commands for debug.debug are not lexically nested within
any function and so have no direct access to local variables."