MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / propagateDebug

Method propagateDebug

src/Context.cpp:1298–1308  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Using the general rc.debug setting automaticalls sets debug.hooks and debug.parser, unless they already have values, which by default they do not.

Source from the content-addressed store, hash-verified

1296// and debug.parser, unless they already have values, which by default they do
1297// not.
1298void Context::propagateDebug() {
1299 if (config.getBoolean("debug")) {
1300 if (!config.has("debug.hooks")) config.set("debug.hooks", 1);
1301
1302 if (!config.has("debug.parser")) config.set("debug.parser", 1);
1303 } else {
1304 if ((config.has("debug.hooks") && config.getInteger("debug.hooks")) ||
1305 (config.has("debug.parser") && config.getInteger("debug.parser")))
1306 config.set("debug", true);
1307 }
1308}
1309
1310////////////////////////////////////////////////////////////////////////////////
1311// No duplicates.

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected