Describe your step-by-step process for debugging a device that randomly resets after a few hours of operation.