Difference between revisions of "Studio:Debugging Helps"
m |
|||
Line 4: | Line 4: | ||
== perl == | == perl == | ||
− | + | === 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 16: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