Check debug flag in RTU code