Studio:Debugging Helps

From STRIDE Wiki
Revision as of 16:36, 4 February 2008 by Timd (talk | contribs)
Jump to: navigation, search

Script Debugging Techniques

Listed here are some debugging techniques.

perl

PrintMessage()

my $funcs = $main::ascript->Functions;

# loop through each captured function
foreach (0..($funcs->Count - 1)) {
   my $f = $funcs->Item($_);
   # send output to Studio Messages window
   $main::studio->Output->PrintMessage("function item ".$_." ".$f->Name);
}
  • MessageBox()
  • exception messages


JScript

  • PrintMessage()
  • MessageBox()
  • exception messages
  • symbolic debugger