How to enable polling debug for a device