There are times when Arduino software must be debugged and you are not connected to a Software Development Environment. It then becomes near impossible to know what is going on. In these cases, it is handy to be able to turn on a diagnostic mode and see exactly where you are in the code plus specific pieces of data at these times. Here is one way to do it.
If you are interested, please see
Your comments are welcome. All of us are smarter than any one of us.