Only debug when it is enabled.