coroutineのデバッグ情報の取り方
local co=coroutine.create(f) local success, msg=coroutine.resume(co, arg1, arg2, arg3) if not success then print(msg) error(debug.traceback(co)) end
重要。無いとデバッグ大変
local co=coroutine.create(f) local success, msg=coroutine.resume(co, arg1, arg2, arg3) if not success then print(msg) error(debug.traceback(co)) end
重要。無いとデバッグ大変