Example #1
0
        static void _Print(object text, string cp, int cln, string cmn)
        {
            string s      = AOutput.ObjectToString_(text);
            string prefix = null; if (s.Starts("<>"))

            {
                prefix = "<>"; s = s.Substring(2);
            }

            AOutput.Write($"{prefix}Debug: {cmn} ({APath.GetFileName(cp)}:{cln}):  {s}");
        }
Example #2
0
        public static void Dialog(object text, [CallerFilePath] string cp = null, [CallerLineNumber] int cln = 0, [CallerMemberName] string cmn = null)
        {
            string s = AOutput.ObjectToString_(text);

            ADialog.Show("Debug", s, flags: DFlags.ExpandDown, expandedText: $"{cmn} ({APath.GetFileName(cp)}:{cln})");
        }