add debug console to troubleshoot ipad3 orientationchange