Switching debugging to infrared