Flash! (Ah-ah!) ActionScript 3 varDump function

So, recently I’ve been doing a fair amount of work with ActionScript 3 in Flash, and its complete lack of a useful variable dumping function has really started to get on my nerves.  So, after a lot of toing-and-froing, I eventually found some examples which partially did what I wanted them to do.
Most of the [...]