Refactoring + Added configuration properties IfDebuggerIsAttachedThenThrowException and IfJitOptimizerDisabledThenThrowException