コード例 #1
0
 /// <summary>Gets a "clean" text form of an object for simpler output to debug logs, may have added colors or other details.</summary>
 /// <returns>The debug-friendly string.</returns>
 public override string GetDebugString()
 {
     return(Internal.GetDebugString());
 }
コード例 #2
0
 /// <summary>Helps debug output for the var command.</summary>
 /// <param name="res">The object saved as a var.</param>
 /// <param name="varName">The variable name stored into.</param>
 /// <param name="typeName">The variable type name.</param>
 /// <param name="queue">The queue.</param>
 /// <param name="entry">The entry.</param>
 public static void DebugHelper(TemplateObject res, string varName, string typeName, CommandQueue queue, CommandEntry entry)
 {
     if (entry.ShouldShowGood(queue))
     {
         entry.GoodOutput(queue, "Stored variable '" + TextStyle.Separate + varName
                          + TextStyle.Base + "' with value: '" + TextStyle.Separate + res.GetDebugString()
                          + TextStyle.Base + "' as type: '" + TextStyle.Separate + typeName + TextStyle.Base + "'.");
     }
 }