Debugging Intermittently-Powered Embedded Systems Like Any Other Embedded System