14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

58 <strong>Scripting</strong> Tools Chapter 4<br />

Debug Scripts<br />

Table 4.1 Description of the Debugger Buttons<br />

Button Button Name Action<br />

Run<br />

Run without<br />

breakpoints<br />

Break All<br />

Stop<br />

Runs the script in the Debugger until it reaches either a breakpoint or the<br />

end of the script.<br />

Runs the script through the end without stopping and exits the Debugger.<br />

If the script is busy, click Break All to stop all action in the script and return<br />

to the Debugger, for example, if you are in a very long loop.<br />

The debugger may not be able to break execution if the executing script is<br />

waiting on some interactive user action, such as completing a dialog or<br />

interacting with an opened window.<br />

Stops debugging the script and exits the Debugger.<br />

Restart<br />

Disabled. This option might be available in a future release.<br />

Step Into<br />

Step Over<br />

Step Out<br />

Lets you step into a function or an included file. Otherwise, it behaves the<br />

same as Step Over.<br />

Runs all expressions on a single line, or a complex expression that spans<br />

multiple lines, without stepping into a called expression, function, or<br />

Include() file.<br />

Runs the current script or function to a breakpoint or the end and returns to<br />

the calling point. If you are in the main script and the Debugger reaches the<br />

end, the Debugger will close.<br />

Variable Lists<br />

The tabs on the bottom left of the Debugger let you examine global variables, local variables, watch<br />

variables, and variables within namespaces.<br />

Globals The Globals tab lists all global variables and updates their values as you step through the script.<br />

Each variable is added as it is initialized. If there are already global variables defined from running earlier<br />

scripts, they will be listed with their current values when you start the Debugger. See “View Variables”<br />

on page 62.<br />

Locals The Locals tab lists all variables by scope and updates their values as you step through the script.<br />

Select a scope in the menu. See “View Variables” on page 62.<br />

Watch If there is a particular variable or value of an expression whose values you want to watch as you step<br />

through the code, you can add them here. This is particularly useful if your script uses many variables<br />

that might be hard to watch in the Globals or Locals lists. See “Work with Watches” on page 62.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!