User Guide

651
SPSS Scripting
Facility
To debug an autoscript, open the autoscript file in a script window, insert break
points in the procedure that you want to debug, and then run the statistical procedure
that trigge
rs the autoscript.
Step Into. Execute the current line. If the current line is a subroutine or function call,
stop on the first line of that subroutine or function.
Step Over. E
xecute to the next line. If the current line is a subroutine or function call,
execute the subroutine or function completely.
Step Out. Step out of the current subroutine or function call.
Step to Curs
or.
Execute to the current line.
Toggle Break . Insert or remove a break point. The script pauses at the break point,
and the debugging pane is displayed.
Quick Watch
.
Display the value of the current expression.
Add Watch. Add the current expression to the watch window.
Object Browser. Display the object browser.
Set Next Sta
tement.
Set the next statement to be executed. Only statements in the
current subroutine/function can be selected.
Show Next Statement. Display the next statement to be executed.
To Step through a Script
E From the Debug menu, choose any of the Step options to execute code, one line
or subroutine at a time.
The Immediate, Watch, Stack, and Loaded tabs are displayed in the script window,
along with the debugging toolbar.
E Use the toolbar (or hot keys) to continue stepping through the script.
E Alternatively, select To ggle B reak to insert a break point at the current line.
The script
pauses at the break point.