Refactor DebugExceptions

Combine two conditionals into one.