//CheckBreakpoint should be after log of onenter/onexit/update, as it needs to flush msg to the client public static void CHECK_BREAKPOINT(Agent pAgent, BehaviorNode b, string action, EActionResult actionResult) { #if !BEHAVIAC_RELEASE if (Config.IsLoggingOrSocketing) { string bpstr = GetTickInfo(pAgent, b, action); if (!string.IsNullOrEmpty(bpstr)) { LogManager.Instance.Log(pAgent, bpstr, actionResult, LogMode.ELM_tick); if (Workspace.Instance.CheckBreakpoint(pAgent, b, action, actionResult)) { LogManager.Instance.Log(pAgent, bpstr, actionResult, LogMode.ELM_breaked); LogManager.Instance.Flush(pAgent); SocketUtils.Flush(); _MY_BREAKPOINT_BREAK_(pAgent, bpstr, actionResult); LogManager.Instance.Log(pAgent, bpstr, actionResult, LogMode.ELM_continue); LogManager.Instance.Flush(pAgent); SocketUtils.Flush(); } } } #endif }