Set debug mode when restoring