My use case now is work with server which creates separate coroutine for each request.
So code looks like this
mobdebug.coro()
mobdebug.start()
mobdebug.off()
function handler() -- this function calls in coro
mobdebug.on()
....
mobdebug.off()
end
In this case I have small inconvenience.
Debugger interrupt execution of main thread just after mobdebug.start() returns.
But I really do not need this. I just need only connect to debugger and then
just turn on debugger in some functions.
So I suggest add one more argument to start
In my system i implement it just like if off then mobdebug.off() end before return true
inside start function and use it like
mobdebug.coro()
mobdebug.start(nil, nil, true)
function handler()
mobdebug.on()
....
mobdebug.off()
end
My use case now is work with server which creates separate coroutine for each request.
So code looks like this
In this case I have small inconvenience.
Debugger interrupt execution of main thread just after
mobdebug.start()returns.But I really do not need this. I just need only connect to debugger and then
just turn on debugger in some functions.
So I suggest add one more argument to
startIn my system i implement it just like
if off then mobdebug.off() endbeforereturn trueinside
startfunction and use it like