You've got UART access to an embedded device. Maybe you soldered wires to test pads, maybe the debug header was exposed. Either way, you have a shell - but UART is painful: Slow (115200 baud = ~2-3 KB ...
Sending messages to a screen in serial console is the simplest and most common way to debug embedded programs. In Arduino projects, using Serial.print() is a standard debugging technique.