From 87538589a64d003dac47205aaee3e306628092b2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 19 Oct 2014 17:33:01 -0400 Subject: [PATCH] Context - Setting rc.debug.hooks or rc.debug.parser to non-zero values also sets rc.debug=true, otherwise the output is not visible. --- src/Context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Context.cpp b/src/Context.cpp index 1c71ffdc7..10a6abe8d 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -772,6 +772,12 @@ void Context::propagateDebug () if (! config.has ("debug.parser")) config.set ("debug.parser", 1); } + else + { + if ((config.has ("debug.hooks") && config.getInteger ("debug.hooks")) || + (config.has ("debug.parser") && config.getInteger ("debug.parser")) ) + config.set ("debug", true); + } } ////////////////////////////////////////////////////////////////////////////////