This kind of debugging usually has microcontrollers sending messages over a serial port, but in embedded development there isn’t always a hardware UART, or it might already be in use.
Outputting data from a microcontroller over a serial port is convenient and easy ... having spent too many hours building and debugging custom dashboards. To save himself and others the same ...