/////////////////////////////////////////////////////////////////////////// Using the general rc.debug setting automaticalls sets debug.hooks and debug.parser, unless they already have values, which by default they do not.
| 1296 | // and debug.parser, unless they already have values, which by default they do |
| 1297 | // not. |
| 1298 | void 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. |