From bd790cbdf1e6c87095464a62a068f6c8e3df74ea Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Wed, 11 Feb 2015 17:58:52 +0800 Subject: [PATCH] add _CO for debug coroutine --- lualib/skynet/remotedebug.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lualib/skynet/remotedebug.lua b/lualib/skynet/remotedebug.lua index 338cbff8..8b7c89e3 100644 --- a/lualib/skynet/remotedebug.lua +++ b/lualib/skynet/remotedebug.lua @@ -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