Add support for $config->debugIf option