lua-users home
lua-l archive

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


On 21 August 2015 at 12:18, Sean Conner <sean@conman.org> wrote:
> 3) Allow the setting of a single breakpoint.  It's always bothered me that
> you have to set a hook and get notified *every single time* (function by
> function, line by line, cycle by cycle) even if you just want to stop at a
> single place.  At least allow a breakpoint at the start of a function.  That
> way, the code runs at full speed until the breakpoint.

Just swap the function out?
local _oldfoo = foo; foo = function(...)
    debug.debug() -- use whatever you want instead.
    return _oldfoo(...)
end