lua-users home
lua-l archive

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


Hi Everyone,
the core Lua does not provide a debugger, but according to PiL2
(chapter 23) the Debug Library provides everything needed to roll
one's own debugger.

At this point I have pretty straightforward debugging needs to:
1: Instrument my Lua code with calls to a "break" function that breaks
the execution at the point where it is called  and gives me Lua
interactive session (Lua prompt)
2: Inspect and possibly modify Lua values (global, local, upvalues,
etc) through the Lua interactive session
3: continue: end Lua interactive session and continue Lua code
execution from where "break" call returns.

Any suggestions on how to do this?

Thanks,
--Leo--