Lua debugging: how to break, enter Lua interactive session, continue?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Lua debugging: how to break, enter Lua interactive session, continue?
- From: "Leo Razoumov" <slonik.az@...>
- Date: 2006年12月10日 09:58:46 -0500
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--