Well-funded labs in the RS232 days used to have HP4957A protocol analyzers, which can now be found cheaply on the surplus market.
A video featuring an HP4957A protocol analyzer shows its cool design and functionality, including the ability to load different interpreters from ROM to RAM.
Old RS232 gear, like breakout boxes and advanced sniffers, can still be found and may be useful for systems that require communication between devices.
Using modern technology like a PC or a Pi Pico can achieve similar results, but lacks the same charm and nostalgia as the vintage HP4957A protocol analyzer.