Votan and Garkin pretty much covered it. I just want to add a reference to
zgoo, an addon that shows you the complete contents of the global namespace in the game. It lets you see the contents of every global variable, and is invaluable for debugging (among other things).