Since the runonce, widget and cron tasks communicate via the $_GLOBAL array I find myself always wanting to know what the values are so that i can track bugs down between the two.
I put the attached script together ... put it in your /shell folder
>printglobal foo bar
Will print out the values of foo and bar, (array, number or string).
Prints out the global array (like /scripts/tests/globals)
Feel free to improve and repost