make sure we test for debugger before doing anything else