Describe how you would debug a kernel panic that occurs intermittently during boot on an embedded target.