try/catch blocks and debugArm logging