public static void DumpLocals() { dump = runner.GetDebuggerDump(); var sb = new StringBuilder("{\r\n"); foreach (var local in dump.locals) { sb.AppendLine($" <b>{local.Key}</b>: {local.Value}"); } sb.Append("}"); Debug.Log(sb.ToString()); }
public static void Break() { dump = runner.GetDebuggerDump(); #if UNITY_EDITOR if (showDebugger == null) { return; } var src = Convert.ToBase64String( Encoding.UTF8.GetBytes(dump.methodSrc)); showDebugger.Invoke(src, dump.breakLine); #endif }