Added answer on how to restore debugging after device reset.