BugFix: Debuging Throws Invalid Operation Except

Debuging should not throw system invalid operation exception.