lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2018-05-02 6:07 GMT+02:00 Daurnimator <>:
> On 2 May 2018 at 13:43, Dirk Laurie <> 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()?

"Note that commands for debug.debug are not lexically nested within
any function and so have no direct access to local variables."