Testing for errors from PerfectScript
WordPerfect lets you debug macros, step-by-step, with a breakpoint. You can also debug macros by briefly displaying or “animating” each command before it is executed.
To debug a macro step-by-step from PerfectScript |
1.
|
|
In PerfectScript, click File Debug Play.
|
2.
|
|
Choose a macro.
|
3.
|
|
Type a filename and path in the Listing filename box.
|
4.
|
|
Click OK.
|
5.
|
|
Click Debug Step into.
|
•
|
|
You may need to repeat this procedure more than once, until the macro is debugged.
|
To set a macro breakpoint |
1.
|
|
Choose the line of the macro at which you want to insert a breakpoint.
|
2.
|
|
Click Debug Breakpoint Add.
|
If you want to debug a macro with a breakpoint, click Debug Continue.
|
To animate a macro |
1.
|
|
In the PerfectScript utility, click Edit Tools.
|
2.
|
|
Click the Debug tab.
|
3.
|
|
In the Animate settings area, enable one of the following options:
|
•
|
‘Runto’ does ‘step into’ — executes the next single statement
|
•
|
‘Runto’ does ‘step over’ — executes the call of the label or routine without stopping until it has completed
|
4.
|
|
Type a value in the Delay (seconds) box.
|
5.
|
|
Click OK.
|
6.
|
|
Click Debug Animate.
|
To view the meaning of commands from the PerfectScript Debugger |
•
|
|
Point to a command line.
|
The command or variable name and definition display.
|