You can simulate a 5G base station and/or a phone (UE) with this software and have them talk to each other over your local network or localhost
You can even use an SDR to create a real base station or UE (local laws allowing) at home.
The tool has logging and quite nice plots that show the constellation diagrams, signal decoding, etc.