So I was looking for something and came across this old link from K11. I didn't go to K11, but I sure wanted to.
I still think this lab has useful info so I'm sharing it here on this post and linking to the source at the bottom.
Source: https://www.slideshare.net/j_roberts/servicenow-knowledge11-advanced-scripting-debugging-lab