My understanding of Script Debugging
When you write own or want to rip other peoples VBScript scripts, JScript scripts, or Java applications, run MDM or use the 'Script debugging' option in Internet Explorer. This will allow you to pickup or correct the errors that the scripts generate.