From 3cb10a485097ffc69024c64e74898afa1dddd5b6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 20 Apr 2014 09:28:35 -0400 Subject: [PATCH] Command - Added a debug mode parse tree dump in Command::filter, which is the first opportunity to see the complete tree. There will be other places where this occurs too. --- src/commands/Command.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index eb0757c30..78a7e44a2 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -292,6 +292,13 @@ void Command::filter (const std::vector & input, std::vector & outpu A3 filt = context.a3.extract_filter (); filt.dump ("extract_filter"); + if (context.config.getBoolean ("debug")) + { + Tree* t = context.a3t.tree (); + if (t) + context.debug (t->dump ()); + } + if (filt.size ()) { E9 e (filt); @@ -315,6 +322,13 @@ void Command::filter (std::vector & output) A3 filt = context.a3.extract_filter (); filt.dump ("extract_filter"); + if (context.config.getBoolean ("debug")) + { + Tree* t = context.a3t.tree (); + if (t) + context.debug (t->dump ()); + } + if (filt.size ()) { context.timer_filter.stop ();