Echo or history command list

Hi, Is there any way to see the python commands that are run when button or function is run?
In modo there was a running history list. I could run a command and then copy that command to a shortcut key. it was also useful for figuring out what was going on under the hood.
Or is there a overall list of all the Blender Commands?
Thanks

Change one of your viewports to “Info”.

Thank you That’s what I was looking for.