Debug: Display the final parse tree for rc.debug.parser=1.

This commit is contained in:
Paul Beckingham 2015-08-03 07:54:56 -04:00
parent 26f9e066e7
commit ebecaf420e

View file

@ -459,6 +459,13 @@ int Context::dispatch (std::string &out)
cli2.prepareFilter ();
}
// With rc.debug.parser == 3, there are more tree dumps than you might want,
// but we need the rc.debug.parser == 1 case covered also, with the final
// tree.
if (config.getBoolean ("debug") &&
config.getInteger ("debug.parser") == 1)
debug (cli2.dump ("Parse Tree"));
return c->execute (out);
}