Step through a program

Is there any way to single step through a program line by line?

Not with the Arduino IDE.

haven't done that in decades.

consider using Serial.println() and serial monitor