Studio:Debugging Helps: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
== perl ==
== perl ==


* studio.Output.PrintMessage()
=== PrintMessage() ===
 
<pre>
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);
}
</pre>


* MessageBox()
* MessageBox()

Revision as of 22:36, 4 February 2008

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