• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Debugging Scripts

Just writing a program can be hard enough, but getting it to work correctly can try the patience of a saint. Thankfully, Windows scripting comes with a graphical debugger that lets you see what's happening inside your script program as it runs. If you've written and debugged macros in Word, Excel, Access, or other Microsoft applications, you've probably already encountered the visual debugger. If not, here's a short tour.

If a script encounters a glaring programming error (for example, a misplaced comma or an unrecognized word), WSH will report the error. For example, here's a script with a serious error:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint