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

WordPerfect Office btnbacktotopproc Testing for errors from PerfectScript
1.
 
In PerfectScript, click File WordPerfect Office onestep Testing for errors from PerfectScript Debug WordPerfect Office onestep Testing for errors from PerfectScript Play.
2.
 
Choose a macro.
3.
 
Type a filename and path in the Listing filename box.
4.
 
Click OK.
5.
 
Click Debug WordPerfect Office onestep Testing for errors from PerfectScript Step into.

WordPerfect Office note Testing for errors from PerfectScript

 
You may need to repeat this procedure more than once, until the macro is debugged.

To set a macro breakpoint

WordPerfect Office btnbacktotopproc Testing for errors from PerfectScript
1.
 
Choose the line of the macro at which you want to insert a breakpoint.
2.
 
Click Debug WordPerfect Office onestep Testing for errors from PerfectScript Breakpoint WordPerfect Office onestep Testing for errors from PerfectScript Add.
If you want to debug a macro with a breakpoint, click Debug WordPerfect Office onestep Testing for errors from PerfectScript Continue.

To animate a macro

WordPerfect Office btnbacktotopproc Testing for errors from PerfectScript
1.
 
In the PerfectScript utility, click Edit WordPerfect Office onestep Testing for errors from PerfectScript 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 WordPerfect Office onestep Testing for errors from PerfectScript Animate.

WordPerfect Office tip Testing for errors from PerfectScript

 
When correcting compilation errors, start at the beginning and first correct the errors that are obvious, leaving the others until later, as some of these errors may have been caused by an earlier error.

To view the meaning of commands from the PerfectScript Debugger

WordPerfect Office btnbacktotopproc Testing for errors from PerfectScript
 
Point to a command line.
The command or variable name and definition display.

Testing for errors from PerfectScript