lua-users home
lua-l archive

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

steve donovan wrote:
> 1) Mostly, we are wanting to get to the next breakpoint. Would it be
> significantly faster to be only catching 'call' events and doing some
> clever breakpoint detection logic, instead of checking every 'line'
> event?

> 2) Would much be gained by making that dedicated hook a C function?


> 3) Was any thought given to implementing 'hard' breakpoints, e.g. like
> x86 'int 0x3'. The idea is that there is a special opcode which is
> inserted by debuggers, which replaces the old opcode and triggers a
> special debug event?

This could be part of a higher-level debug API for Lua. I've
thrown out some random ideas about it (in the context of LuaJIT,
but relevant for Lua, too):