public void AfterStep(object sender, CompilerStepEventArgs args) { Console.WriteLine("********* {0} *********", args.Step); StringWriter writer = new StringWriter(); args.Context.CompileUnit.Accept(new BooPrinterVisitor(writer, BooPrinterVisitor.PrintOptions.PrintLocals)); string code = writer.ToString(); if (code != _last) { Console.WriteLine(code); } else { Console.WriteLine("no changes"); } _last = code; }
void OnAfterStep(object sender, CompilerStepEventArgs args) { args.Context.TraceLeave("Leaving {0}", args.Step); }
void OnBeforeStep(object sender, CompilerStepEventArgs args) { args.Context.TraceEnter("Entering {0}", args.Step); }
private void DebugModuleAfterStep(object sender, CompilerStepEventArgs args) { Console.WriteLine("********* {0} *********", args.Step); Console.WriteLine(args.Context.CompileUnit.ToCodeString()); }
void OnAfterStep(object sender, CompilerStepEventArgs args) { stepStopwatch.Stop(); args.Context.TraceLeave("Leaving {0} ({1}ms)", args.Step, stepStopwatch.ElapsedMilliseconds); }
void OnBeforeStep(object sender, CompilerStepEventArgs args) { args.Context.TraceEnter("Entering {0}", args.Step); stepStopwatch = Stopwatch.StartNew(); }
public void BeforeStep(object sender, CompilerStepEventArgs args) { _stopWatch = Stopwatch.StartNew(); }