factores out debug configuration into separate document