I assume from the original post that OP has a game that’s crashing when run and they wanted to see what the error is (if any). Running a game through the terminal is a great way to get some error/output in the terminal that might explain the crash.
That’s at least my assumption, there isn’t enough details in the post so it’s hard to say.