lua-users home
lua-l archive

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


This code produces an error:
debug.mobdebug = require("mobdebug")
coroutine.wrap(debug.mobdebug.start)()

This one doesn't, but it doesn't work out, i.e. doesn't give control to ZeroBrane:
assert(pcall(debug.mobdebug.start))

A call close to these in other circumstances also lead to an error: <func> was nil in <capture_vars> called from line 818.

This seems to solve all such problems:
function debug.start()
    debug.mobdebug.start()
end

Calling debug.start in any manner works fine.

--
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru