Beispiel #1
0
        protected static void DumpDataWithBreak(string text, params object[] p)
        {
            var os = Tracer.DumpData(text, p, 1);

            Tracer.Line(os);
            Tracer.TraceBreak();
        }
Beispiel #2
0
        public static void NotImplementedFunction(params object[] p)
        {
            var os = Tracer.DumpMethodWithData("not implemented", null, p, 1);

            Tracer.Line(os);
            Tracer.TraceBreak();
        }
Beispiel #3
0
        protected void DumpMethodWithBreak(string text, params object[] p)
        {
            var os = Tracer.DumpMethodWithData(text, this, p, 1);

            Tracer.Line(os);
            Tracer.TraceBreak();
        }
Beispiel #4
0
 protected void BreakExecution()
 {
     if (IsMethodDumpTraceActive)
     {
         Tracer.TraceBreak();
     }
 }
Beispiel #5
0
        protected void NotImplementedMethod(params object[] p)
        {
            if (IsInDump)
            {
                throw new NotImplementedException();
            }

            var os = Tracer.DumpMethodWithData("not implemented", this, p, 1);

            Tracer.Line(os);
            Tracer.TraceBreak();
        }
Beispiel #6
0
 protected static void ReturnVoidMethodDump(bool breakExecution = true)
 {
     if (IsMethodDumpTraceActive)
     {
         Tracer.IndentEnd();
         Tracer.Line(Tracer.MethodHeader(stackFrameDepth: 1) + "[returns]");
         if (breakExecution)
         {
             Tracer.TraceBreak();
         }
     }
 }
Beispiel #7
0
 protected static T ReturnMethodDump <T>(T rv, bool breakExecution = true)
 {
     if (IsMethodDumpTraceActive)
     {
         Tracer.IndentEnd();
         Tracer.Line(Tracer.MethodHeader(stackFrameDepth: 1) + "[returns] " + Tracer.Dump(rv));
         if (breakExecution)
         {
             Tracer.TraceBreak();
         }
     }
     return(rv);
 }