debug step mode

This commit is contained in:
Cloud Wu
2015-02-11 14:18:47 +08:00
parent e031a35330
commit 8792a40845
7 changed files with 436 additions and 80 deletions

View File

@@ -233,6 +233,9 @@ function suspend(co, result, command, param, size)
elseif command == "QUIT" then
-- service exit
return
elseif command == nil then
-- debug trace
return
else
error("Unknown command : " .. command .. "\n" .. debug.traceback(co))
end
@@ -719,6 +722,7 @@ local debug = require "skynet.debug"
debug(skynet, {
dispatch = dispatch_message,
clear = clear_pool,
suspend = suspend,
})
return skynet