Sleep and debugging

I’m starting to incorporate sleep modes into my code and I notice that the USB debug connection goes away when sleep is entered. That makes it difficult to see the log messages my code prints. Is there a recommended work-around, or am I missing some trick? (I’m using stop mode, not stand-by.)

@tve, one approach is to use the Particle CLI to monitor the serial but automatically reconnect using particle serial monitor --follow.

1 Like