add _CO for debug coroutine

This commit is contained in:
Cloud Wu
2015-02-11 17:58:52 +08:00
parent 95db7fdb5b
commit bd790cbdf1

View File

@@ -194,6 +194,7 @@ local function hook_dispatch(dispatcher, resp, fd, channel)
local function watch_cmd(cmd)
local co = next(ctx_active)
watch_env._CO = co
if dbgcmd[cmd] then
dbgcmd[cmd](co)
else